示例#1
0
 /**
  * {@inheritDoc}
  */
 public function getIdentifiers($onlyUnloaded = true)
 {
     if (true === $this->loaded) {
         return [];
     }
     return [$this->owner->getId()];
 }
示例#2
0
文件: Cache.php 项目: as3io/modlr
 /**
  * Pushes a model into the memory cache.
  *
  * @param   Model   $model
  * @return  self
  */
 public function push(Model $model)
 {
     $this->models[$model->getType()][$model->getId()] = $model;
     return $this;
 }