Свойство | Type | Description | |
---|---|---|---|
$defaultOrderings | array | ||
$objectType | string | Warning: if you think you want to set this, look at RepositoryInterface::ENTITY_CLASSNAME first! | |
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface |
Méthode | Description | |
---|---|---|
__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 |
Résultat | Doctrine\ORM\Query | The DQL query object |
public createQuery ( ) : |
||
Résultat |
public findAll ( ) : Neos\Flow\Persistence\QueryResultInterface | ||
Résultat | Neos\Flow\Persistence\QueryResultInterface | The query result |
public findByIdentifier ( mixed $identifier ) : object | ||
$identifier | mixed | The identifier of the object to find |
Résultat | object | The matching object if found, otherwise NULL |
public getEntityClassName ( ) : string | ||
Résultat | string |
public setDefaultOrderings ( array $defaultOrderings ) : void | ||
$defaultOrderings | array | The property names to order by by default |
Résultat | void |
protected string $objectType | ||
Résultat | string |