Свойство | Тип | Описание | |
---|---|---|---|
$defaultOrderings | array | ||
$objectType | string | Warning: if you think you want to set this, look at RepositoryInterface::ENTITY_CLASSNAME first! | |
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface |
Метод | Описание | |
---|---|---|
__call ( string $method, array $arguments ) : mixed | Magic call method for repository methods. | |
__construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata = null ) | Initializes a new Repository. | |
add ( object $object ) : void | Adds an object to this repository. | |
countAll ( ) : integer | Counts all objects of this repository | |
createDqlQuery ( string $dqlString ) : Doctrine\ORM\Query | Creates a DQL query from the given query string | |
createQuery ( ) : |
Returns a query for objects of this repository | |
findAll ( ) : Neos\Flow\Persistence\QueryResultInterface | Finds all entities in the repository. | |
findByIdentifier ( mixed $identifier ) : object | Finds an object matching the given identifier. | |
getEntityClassName ( ) : string | Returns the classname of the entities this repository is managing. | |
remove ( object $object ) : void | Removes an object from this repository. | |
removeAll ( ) : void | Removes all objects of this repository as if remove() was called for all of them. | |
setDefaultOrderings ( array $defaultOrderings ) : void | Sets the property names to order results by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING ) | |
update ( object $object ) : void | Schedules a modified object for persistence. |
public __construct ( Doctrine\Common\Persistence\ObjectManager $entityManager, Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata = null ) | ||
$entityManager | Doctrine\Common\Persistence\ObjectManager | The EntityManager to use. |
$classMetadata | Doctrine\Common\Persistence\Mapping\ClassMetadata | The class descriptor. |
public createDqlQuery ( string $dqlString ) : Doctrine\ORM\Query | ||
$dqlString | string | The query string |
Результат | Doctrine\ORM\Query | The DQL query object |
public createQuery ( ) : |
||
Результат |
public findAll ( ) : Neos\Flow\Persistence\QueryResultInterface | ||
Результат | Neos\Flow\Persistence\QueryResultInterface | The query result |
public findByIdentifier ( mixed $identifier ) : object | ||
$identifier | mixed | The identifier of the object to find |
Результат | object | The matching object if found, otherwise NULL |
public getEntityClassName ( ) : string | ||
Результат | string |
public setDefaultOrderings ( array $defaultOrderings ) : void | ||
$defaultOrderings | array | The property names to order by by default |
Результат | void |
protected string $objectType | ||
Результат | string |