PHP Class Newscoop\Service\Implementation\AEntityBaseServiceDoctrine

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager
$entityClassName string
$id Newscoop\Service\Resource\ResourceId

Public Methods

Method Description
__construct ( ResourceId $id ) Construct the service base d on the provided resource id.
findById ( $id )
getById ( $id ) * ---------------------------------------------------------------

Protected Methods

Method Description
_init_ ( ) Provides aditional initialization for the service.
getManager ( ) : EntityManager Provides the dictrine entity manager.
getResourceId ( ) : Newscoop\Services\Resource\ResourceId Provides the resource id.

Method Details

__construct() public method

Construct the service base d on the provided resource id.
public __construct ( ResourceId $id )
$id Newscoop\Service\Resource\ResourceId The resource id, not null not empty

_init_() abstract protected method

Provides aditional initialization for the service.
abstract protected _init_ ( )

findById() public method

public findById ( $id )

getById() public method

* ---------------------------------------------------------------
public getById ( $id )

getManager() protected method

Provides the dictrine entity manager.
protected getManager ( ) : EntityManager
return Doctrine\ORM\EntityManager The doctrine entity manager.

getResourceId() protected method

Provides the resource id.
protected getResourceId ( ) : Newscoop\Services\Resource\ResourceId
return Newscoop\Services\Resource\ResourceId The resource id.

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager

$entityClassName protected_oe property

protected string $entityClassName
return string

$id protected_oe property

protected ResourceId,Newscoop\Service\Resource $id
return Newscoop\Service\Resource\ResourceId