Maslosoft Mangan API
Interface FinderInterface
Direct known implementers
Maslosoft\Mangan\Abstracts\AbstractFinder
,
Maslosoft\Mangan\Interfaces\ActiveRecordInterface
Indirect known implementers
Maslosoft\Mangan\Document
,
Maslosoft\Mangan\Example\ExampleUser
,
Maslosoft\Mangan\Finder
,
Maslosoft\Mangan\Helpers\RawFinder
,
Maslosoft\Mangan\Model\Trash
,
Maslosoft\Mangan\Model\TrashItem
Author: Piotr Maselkowski
Located at Interfaces/FinderInterface.php
Methods summary
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface
|
#
find( array|
Finds a single Document with the specified condition. |
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface|null
|
#
findByPk( mixed $pk, array|
Finds document with the specified primary key. Primary key by default
is defined by |
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface|null
|
#
findByAttributes( array $attributes )
Finds document with the specified attributes. Attributes should be specified as key-value pairs. This allows easier syntax for simple queries. |
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface|
|
#
findAll( array|
Finds all documents satisfying the specified condition. |
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface|
|
|
public
Maslosoft\Addendum\Interfaces\AnnotatedInterface|
|
#
findAllByPk( mixed $pk, array|
Finds all documents with the specified primary keys.
In MongoDB world every document has '_id' unique field, so with this method that
field is in use as PK by default.
See |
public
integer
|
#
count( array|
Counts all documents satisfying the specified condition.
See |
public
integer
|
|
public
boolean
|
#
exists(
Checks whether there is document satisfying the specified condition. |
public
|