content[$primaryKey])) { unset($this->content[$primaryKey]); } } public function evictFromCacheByIdentity(ObjectIdentityInterface $oid) { // Propel ACL does not make use of those. } public function getFromCacheById($primaryKey) { if (isset($this->content[$primaryKey])) { return $this->content[$primaryKey]; } return null; } public function getFromCacheByIdentity(ObjectIdentityInterface $oid) { // Propel ACL does not make use of those. } public function putInCache(AclInterface $acl) { if (null === $acl->getId()) { throw new \InvalidArgumentException('The given ACL does not have an ID.'); } $this->content[$acl->getId()] = $acl; } public function clearCache() { $this->content = array(); } }