PHP Class Lemon\RestBundle\Object\Manager

Inheritance: implements Lemon\RestBundle\Object\ManagerInterface
Datei anzeigen Open project: stanlemon/rest-bundle

Protected Properties

Property Type Description
$doctrine
$eventDispatcher
$objectDefinition

Public Methods

Method Description
__construct ( Symfony\Bridge\Doctrine\ManagerRegistry $doctrine, EventDispatcher $eventDispatcher, Definition $objectDefinition )
create ( object $object ) : mixed
delete ( integer $id )
getClass ( ) : string
getOptions ( boolean $isResource = false ) : array
partialUpdate ( $object )
retrieve ( integer $id ) : object
search ( Lemon\RestBundle\Object\Criteria $criteria ) : SearchResults
update ( object $object ) : object

Protected Methods

Method Description
getManager ( ) : Doctrine\Common\Persistence\ObjectManager
getRepository ( ) : Lemon\RestBundle\Object\Repository
throwUnsupportedMethodException ( )

Method Details

__construct() public method

public __construct ( Symfony\Bridge\Doctrine\ManagerRegistry $doctrine, EventDispatcher $eventDispatcher, Definition $objectDefinition )
$doctrine Symfony\Bridge\Doctrine\ManagerRegistry
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcher
$objectDefinition Definition

create() public method

public create ( object $object ) : mixed
$object object
return mixed

delete() public method

public delete ( integer $id )
$id integer

getClass() public method

public getClass ( ) : string
return string

getManager() protected method

protected getManager ( ) : Doctrine\Common\Persistence\ObjectManager
return Doctrine\Common\Persistence\ObjectManager

getOptions() public method

public getOptions ( boolean $isResource = false ) : array
$isResource boolean
return array

getRepository() protected method

protected getRepository ( ) : Lemon\RestBundle\Object\Repository
return Lemon\RestBundle\Object\Repository

partialUpdate() public method

public partialUpdate ( $object )

retrieve() public method

public retrieve ( integer $id ) : object
$id integer
return object

throwUnsupportedMethodException() protected method

update() public method

public update ( object $object ) : object
$object object
return object

Property Details

$doctrine protected_oe property

protected $doctrine

$eventDispatcher protected_oe property

protected $eventDispatcher

$objectDefinition protected_oe property

protected $objectDefinition