Метод |
Описание |
|
countStored ( ) : integer |
Counts collection entities without fetching them from storage. |
|
fetch ( ) : Nextras\Orm\Entity\IEntity | null |
Fetches the first row. |
|
fetchAll ( ) : Nextras\Orm\Entity\IEntity[] |
Fetches all records. |
|
fetchPairs ( string $key = null, string $value = null ) : array |
Fetches all records like $key => $value pairs. |
|
findBy ( array $where ) : Nextras\Orm\Collection\ICollection |
Returns entity collection filtered by conditions. |
|
getBy ( array $where ) : Nextras\Orm\Entity\IEntity | null |
Returns IEntity filtered by conditions. |
|
getEntityCount ( Nextras\Orm\Entity\IEntity $parent = null ) : integer |
|
|
getEntityIterator ( Nextras\Orm\Entity\IEntity $parent = null ) : Traversable |
|
|
getRelationshipMapper ( ) : Nextras\Orm\Mapper\IRelationshipMapper |
|
|
limitBy ( integer $limit, integer $offset = null ) : Nextras\Orm\Collection\ICollection |
Limits number of rows. |
|
orderBy ( string | array $column, string $direction = self::ASC ) : Nextras\Orm\Collection\ICollection |
Selects columns to order by. |
|
resetOrderBy ( ) : Nextras\Orm\Collection\ICollection |
Resets collection ordering. |
|
setRelationshipMapping ( Nextras\Orm\Mapper\IRelationshipMapper $mapper = null, Nextras\Orm\Entity\IEntity $parent = null ) : self |
Sets relationship mapping over collection. |
|