Property | Type | Description | |
---|---|---|---|
$database | null | |
Method | Description | |
---|---|---|
add ( $instance ) : mixed | Add instance to the pool | |
addValidator ( Webiny\Component\Entity\Attribute\Validation\ValidatorInterface $validator ) | Add attribute validator to Entity component | |
get ( $class, $id ) : boolean | |
Get entity instance or false if entity does not exist | |
getDatabase ( ) : |
Get entity database | |
getValidator ( $name ) | ||
remove ( |
Remove instance from pool | |
reset ( ) | Remove all loaded instances from pool | |
setDatabase ( |
Set entity database |
Method | Description | |
---|---|---|
init ( ) | ||
postSetConfig ( ) |
public addValidator ( Webiny\Component\Entity\Attribute\Validation\ValidatorInterface $validator ) | ||
$validator | Webiny\Component\Entity\Attribute\Validation\ValidatorInterface |
public getDatabase ( ) : |
||
return |
public setDatabase ( |
||
$mongoDatabase |
protected static null|Mongo,Webiny\Component\Mongo $database | ||
return | null | |