1
0
mirror of synced 2025-01-18 06:21:40 +03:00

[amadeus] Changed getFirst to use reset function for proper behavior on empty

This commit is contained in:
doctrine 2006-07-22 06:39:46 +00:00
parent 91ffb0845b
commit a33e2b89c8

View File

@ -157,7 +157,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
* @return mixed
*/
public function getFirst() {
return $this->data[0];
return reset($this->data);
}
/**
* @return mixed