/** @param IMapper */ public function __construct(IMapper $mapper) { $this->loadFk((array) $mapper->getRepository()->getEntityClassName(), $mapper->getRepository()->getModel()); $primaryKey = $this->getPrimaryKey(); $this->cache['entity']['id'] = $primaryKey; $this->cache['storage'][$primaryKey] = 'id'; }