Nextras\Orm\Model\IModel::getMetadataStorage PHP Method

getMetadataStorage() public method

Returns entity metadata storage.
public getMetadataStorage ( ) : MetadataStorage
return MetadataStorage
    public function getMetadataStorage();

Usage Example

コード例 #1
0
ファイル: Repository.php プロジェクト: Zarganwar/orm
 public function onModelAttach(IModel $model)
 {
     if ($this->model && $this->model !== $model) {
         throw new InvalidStateException('Repository is already attached.');
     }
     $this->model = $model;
     $this->metadataStorage = $model->getMetadataStorage();
 }
All Usage Examples Of Nextras\Orm\Model\IModel::getMetadataStorage