Property | Type | Description | |
---|---|---|---|
$em | |||
$entityClassName | string | ||
$id |
Method | Description | |
---|---|---|
__construct ( |
Construct the service base d on the provided resource id. | |
findById ( $id ) | ||
getById ( $id ) | * --------------------------------------------------------------- |
Method | Description | |
---|---|---|
_init_ ( ) | Provides aditional initialization for the service. | |
getManager ( ) : |
Provides the dictrine entity manager. | |
getResourceId ( ) : Newscoop\Services\Resource\ResourceId | Provides the resource id. |
public __construct ( |
||
$id | The resource id, not null not empty |
abstract protected _init_ ( ) |
public getById ( $id ) |
protected getManager ( ) : |
||
return | The doctrine entity manager. |
protected getResourceId ( ) : Newscoop\Services\Resource\ResourceId | ||
return | Newscoop\Services\Resource\ResourceId | The resource id. |