Newscoop\Service\Implementation\AEntityServiceDoctrine::__construct PHP Method

__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
    function __construct(ResourceId $id)
    {
        parent::__construct($id);
        if (is_null($this->searchClassName)) {
            throw \Exception("Please provide a search class name to be used.");
        }
    }