This commit is contained in:
2023-09-04 23:48:46 +03:00
parent e95c9f744c
commit 09447dd5e9
6 changed files with 73 additions and 11 deletions
+13 -5
View File
@@ -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
}
/**