public createModel ( AuthBucket\OAuth2\Model\ModelInterface $model ) | ||
$model | AuthBucket\OAuth2\Model\ModelInterface |
public function createModel(ModelInterface $model)
{
$this->getEntityManager()->persist($model);
$this->getEntityManager()->flush();
return $model;
}