1
0
mirror of synced 2025-01-18 06:21:40 +03:00
This commit is contained in:
Jonathan.Wage 2007-09-21 18:43:27 +00:00
parent d59dce8607
commit d7cd584080
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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()