Moved save.
This commit is contained in:
parent
208fa1eef8
commit
d59dce8607
@ -22,13 +22,6 @@ class Doctrine_Resource_Collection extends Doctrine_Access implements Countable,
|
|||||||
return new ArrayIterator($data);
|
return new ArrayIterator($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save()
|
|
||||||
{
|
|
||||||
foreach ($data as $record) {
|
|
||||||
$record->save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFirst()
|
public function getFirst()
|
||||||
{
|
{
|
||||||
return $this->data[0];
|
return $this->data[0];
|
||||||
@ -43,4 +36,11 @@ class Doctrine_Resource_Collection extends Doctrine_Access implements Countable,
|
|||||||
|
|
||||||
return $array;
|
return $array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function save()
|
||||||
|
{
|
||||||
|
foreach ($this->data as $record) {
|
||||||
|
$record->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user