1
0
mirror of synced 2024-12-13 14:56:01 +03:00

fixes #696 function was named synchronizeWithArray but i renamed it to synchronizeFromArray because it makes more sense because all the other mades user the term "from"

This commit is contained in:
jwage 2008-01-23 00:54:58 +00:00
parent 64ead091aa
commit c8c859baec

View File

@ -1310,7 +1310,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
} }
/** /**
* synchronizeWithArray * synchronizeFromArray
* synchronizes a Doctrine_Record and its relations with data from an array * synchronizes a Doctrine_Record and its relations with data from an array
* *
* it expects an array representation of a Doctrine_Record similar to the return * it expects an array representation of a Doctrine_Record similar to the return
@ -1320,7 +1320,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
* *
* @param array $array representation of a Doctrine_Record * @param array $array representation of a Doctrine_Record
*/ */
public function synchronizeWithArray(array $array) public function synchronizeFromArray(array $array)
{ {
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
if ($this->getTable()->hasRelation($key)) { if ($this->getTable()->hasRelation($key)) {