fix
This commit is contained in:
@@ -37,12 +37,20 @@ class NullFactory extends AORMFactory
|
||||
*/
|
||||
public function getEntityById($id)
|
||||
{
|
||||
return parent::getEntityById($id);
|
||||
}
|
||||
|
||||
$res = $this->getList(['=ID' => $id]);
|
||||
if( $res ){
|
||||
return $this->getEntityByResult(reset($res));
|
||||
}
|
||||
return null;
|
||||
/**
|
||||
* @param array $filter
|
||||
* @param array $order
|
||||
* @param array $select
|
||||
* @param null $limit
|
||||
* @param null $offset
|
||||
* @return NullCollection
|
||||
*/
|
||||
public function getCollection($filter = [], $order = [], $select = [], $limit = null, $offset = null)
|
||||
{
|
||||
return parent::getCollection($filter, $order, $select, $limit, $offset); // TODO: Change the autogenerated stub
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user