ObjectPathMappingRepository
class ObjectPathMappingRepository extends Repository (View source)
Repository for object path mapping objects
Constants
ENTITY_CLASSNAME |
|
Properties
protected PersistenceManagerInterface | $persistenceManager | from Repository | |
protected string | $entityClassName | Warning: if you think you want to set this, look at RepositoryInterface::ENTITY_CLASSNAME first! |
from Repository |
protected array | $defaultOrderings | ||
protected EntityManagerInterface | $entityManager | Doctrine's Entity Manager. |
Methods
Returns the classname of the entities this repository is managing.
Finds an object matching the given identifier.
Removes all objects of this repository as if remove() was called for all of them.
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 )
Magic call method for repository methods.
No description
No description
Persists all entities managed by the repository and all cascading dependencies
Details
__construct()
Initializes a new Repository.
string
getEntityClassName()
Returns the classname of the entities this repository is managing.
Note that anything that is an "instanceof" this class is accepted by the repository.
void
add(object $object)
Adds an object to this repository.
void
remove(object $object)
Removes an object from this repository.
QueryResultInterface
findAll()
Returns all objects of this repository
object|null
findByIdentifier(mixed $identifier)
Finds an object matching the given identifier.
QueryInterface
createQuery()
Returns a query for objects of this repository
int
countAll()
Counts all objects of this repository
void
removeAll()
Removes all objects of this repository as if remove() was called for all of them.
void
setDefaultOrderings(array $defaultOrderings)
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 )
void
update(object $object)
Schedules a modified object for persistence.
mixed
__call(string $method, array $arguments)
Magic call method for repository methods.
Provides three methods
- findBy
($value, $caseSensitive = true, $cacheResult = false) - findOneBy
($value, $caseSensitive = true, $cacheResult = false) - countBy
($value, $caseSensitive = true)
ObjectPathMapping|null
findOneByObjectTypeUriPatternAndPathSegment(string $objectType, string $uriPattern, string $pathSegment, bool $caseSensitive = false)
No description
ObjectPathMapping|null
findOneByObjectTypeUriPatternAndIdentifier(string $objectType, string $uriPattern, string|int $identifier)
No description
void
persistEntities()
Persists all entities managed by the repository and all cascading dependencies