Organ
        
        extends BaseMapper
    
    
            
            in package
            
        
    
    
    
Mappers for organs.
NOTE: Organs will be modified externally by a script. Modifications will be overwritten.
Tags
Table of Contents
Methods
- __construct() : mixed
 - count() : int
 - detach() : void
 - Detaches an entity from the entity manager causing any changed to be made to the object to be unsaved
 - find() : T|null
 - findAbrogated() : array<string|int, Organ>
 - Find all abrogated organs.
 - findActive() : array<string|int, Organ>
 - Find all active organs.
 - findActiveById() : Organ|null
 - Check if an organ with id `$id` is not abrogated.
 - findAll() : array<string|int, T>
 - findBy() : array<string|int, T>
 - findByAbbr() : Organ|null
 - Find an organ by its abbreviation.
 - findOneBy() : T|null
 - findOrgan() : Organ|null
 - Find an organ with all information.
 - flush() : void
 - getConnection() : Connection
 - Get the entity manager connection.
 - getEntityManager() : EntityManager
 - Get the entity manager.
 - persist() : void
 - persistMultiple() : void
 - Persist multiple studies.
 - remove() : void
 - removeById() : void
 - Remove an entity by its ID using find
 - removeMultiple() : void
 - Removes multiple studies.
 - transactional() : mixed
 - Transactional Doctrine wrapper.
 - getRepository() : EntityRepository
 - Get the repository for this mapper.
 - getRepositoryName() : string
 
Methods
__construct()
    public
                    __construct(EntityManager $em) : mixed
    Parameters
- $em : EntityManager
 
count()
    public
                    count(mixed $criteria) : int
    Parameters
- $criteria : mixed
 - 
                    
The criteria the objects to be counted should satisfy
 
Return values
int —The number of entities satisfying the criteria
detach()
Detaches an entity from the entity manager causing any changed to be made to the object to be unsaved
    public
                    detach(object $entity) : void
    Parameters
- $entity : object
 
Tags
find()
    public
                    find(mixed $id) : T|null
    Parameters
- $id : mixed
 - 
                    
The ID of the entity to be retrieved using the primary key
 
Return values
T|null —The entity corresponding to the provided ID or null of the entity cannot be found
findAbrogated()
Find all abrogated organs.
    public
                    findAbrogated([OrganTypes|null $type = null ]) : array<string|int, Organ>
    Parameters
- $type : OrganTypes|null = null
 
Return values
array<string|int, Organ>findActive()
Find all active organs.
    public
                    findActive([OrganTypes|null $type = null ]) : array<string|int, Organ>
    Parameters
- $type : OrganTypes|null = null
 
Return values
array<string|int, Organ>findActiveById()
Check if an organ with id `$id` is not abrogated.
    public
                    findActiveById(int $id) : Organ|null
    Parameters
- $id : int
 
Return values
Organ|nullfindAll()
    public
                    findAll() : array<string|int, T>
    Return values
array<string|int, T> —All entities in the repository
findBy()
    public
                    findBy(mixed $criteria) : array<string|int, T>
    Parameters
- $criteria : mixed
 - 
                    
The criteria that describe the entity to be retrieved
 
Return values
array<string|int, T> —The entities corresponding to the provided criteria
findByAbbr()
Find an organ by its abbreviation.
    public
                    findByAbbr(string $abbr, bool $latest[, OrganTypes|null $type = null ]) : Organ|null
    It is possible that multiple organs with the same abbreviation exist,
for example, through the reinstatement of a previously abrogated organ.
To retrieve the latest occurrence of such an organ use $latest.
Parameters
- $abbr : string
 - $latest : bool
 - 
                    
Whether to retrieve the latest occurrence of an organ or not
 - $type : OrganTypes|null = null
 
Tags
Return values
Organ|nullfindOneBy()
    public
                    findOneBy(array<string|int, mixed> $criteria) : T|null
    Parameters
- $criteria : array<string|int, mixed>
 - 
                    
The criteria that describe the entity to be retrieved
 
Tags
Return values
T|null —The entity corresponding to the provided criteria or null of the entity cannot be found
findOrgan()
Find an organ with all information.
    public
                    findOrgan(int $id) : Organ|null
    Parameters
- $id : int
 
Tags
Return values
Organ|nullflush()
    public
                    flush() : void
    Tags
getConnection()
Get the entity manager connection.
    public
                    getConnection() : Connection
    Return values
ConnectiongetEntityManager()
Get the entity manager.
    public
                    getEntityManager() : EntityManager
    Return values
EntityManagerpersist()
    public
                    persist(object $entity) : void
    Parameters
- $entity : object
 
Tags
persistMultiple()
Persist multiple studies.
    public
                    persistMultiple(array<string|int, mixed> $entities) : void
    Parameters
- $entities : array<string|int, mixed>
 
Tags
remove()
    public
                    remove(object $entity) : void
    Parameters
- $entity : object
 
Tags
removeById()
Remove an entity by its ID using find
    public
                    removeById(mixed $id) : void
    Parameters
- $id : mixed
 
Tags
removeMultiple()
Removes multiple studies.
    public
                    removeMultiple(array<string|int, mixed> $entities) : void
    Parameters
- $entities : array<string|int, mixed>
 
Tags
transactional()
Transactional Doctrine wrapper.
    public
                    transactional(Closure $func) : mixed
    Instead of the EntityManager, this inserts this Mapper into the function.
Parameters
- $func : Closure
 
getRepository()
Get the repository for this mapper.
    protected
                    getRepository() : EntityRepository
    Tags
Return values
EntityRepositorygetRepositoryName()
    protected
                    getRepositoryName() : string
    Return values
string —the name of the entity repository e.g. "User/Model/User"