This commit is contained in:
parent
d59dce8607
commit
d7cd584080
@ -15,8 +15,6 @@ class Doctrine_Resource_Client extends Doctrine_Resource
|
||||
|
||||
public function newRecord($model)
|
||||
{
|
||||
$record = new Doctrine_Resource_Record($model, $this->config);
|
||||
|
||||
return $record;
|
||||
return new Doctrine_Resource_Record($model, $this->config);
|
||||
}
|
||||
}
|
@ -24,7 +24,7 @@ class Doctrine_Resource_Collection extends Doctrine_Access implements Countable,
|
||||
|
||||
public function getFirst()
|
||||
{
|
||||
return $this->data[0];
|
||||
return isset($this->data[0]) ? $this->data[0]:null;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
|
Loading…
x
Reference in New Issue
Block a user