CharacterRepository
extends EntityRepository
in package
Convenience methods to query for characters.
Table of Contents
- INCLUDE_SOFTDELETED = 1
- ONLY_SOFTDELETED = 2
- SKIP_SOFTDELETED = 0
- find() : mixed
- Find a character by ID, excluding soft deleted ones.
- findAll() : mixed
- Return all characters.
- findWithSoftDeleted() : mixed|null
- Finds a character id ID, including soft deleted ones.
- modifyQuery() : mixed
- Change the provided query to handle the specified deletion mode.
Constants
INCLUDE_SOFTDELETED
public
mixed
INCLUDE_SOFTDELETED
= 1
ONLY_SOFTDELETED
public
mixed
ONLY_SOFTDELETED
= 2
SKIP_SOFTDELETED
public
mixed
SKIP_SOFTDELETED
= 0
Methods
find()
Find a character by ID, excluding soft deleted ones.
public
find(mixed $id[, mixed|null $lockMode = null ][, mixed|null $lockVersion = null ]) : mixed
Parameters
- $id : mixed
- $lockMode : mixed|null = null
- $lockVersion : mixed|null = null
Return values
mixed —findAll()
Return all characters.
public
findAll([int $deletes = self::SKIP_SOFTDELETED ]) : mixed
Parameters
- $deletes : int = self::SKIP_SOFTDELETED
Return values
mixed —findWithSoftDeleted()
Finds a character id ID, including soft deleted ones.
public
findWithSoftDeleted( $id) : mixed|null
Parameters
Tags
Return values
mixed|null —modifyQuery()
Change the provided query to handle the specified deletion mode.
protected
modifyQuery(QueryBuilder $queryBuilder, int $deletes) : mixed
Parameters
- $queryBuilder : QueryBuilder
- $deletes : int