\Pivot\Core\TraitsManageableTrait

Summary

Methods
Properties
Constants
create()
add()
remove()
No public properties found
No constants found
getEntityName()
getEntityManager()
No protected properties found
N/A
isExpectedObject()
No private properties found
N/A

Methods

create()

create() : mixed

Creates an empty object instance.

Returns

mixed

add()

add(mixed  $object) 

Add an object to the repository

Parameters

mixed $object

Throws

\Pivot\Core\Exception\InvalidArgumentException
\Pivot\Core\Exception\RepositoryException

remove()

remove(mixed  $object) 

Removes an object from the repository

Parameters

mixed $object

Throws

\Pivot\Core\Exception\InvalidArgumentException
\Pivot\Core\Exception\RepositoryException

getEntityName()

getEntityName() : string

Returns

string

getEntityManager()

getEntityManager() : \Doctrine\ORM\EntityManager

Returns

\Doctrine\ORM\EntityManager

isExpectedObject()

isExpectedObject(  $object) : boolean

Checks entity

Parameters

$object

Throws

\Pivot\Core\Exception\InvalidArgumentException

Returns

boolean