/** * {@inheritDoc} */ public function getIdentifiers($onlyUnloaded = true) { if (true === $this->loaded) { return []; } return [$this->owner->getId()]; }
/** * 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; }