find($offset); } public function offsetGet($offset) { return $this->find($offset); } public function offsetSet($offset, $value) { throw new \LogicException('This ArrayAccess is non mutable.'); } public function offsetUnset($offset) { throw new \LogicException('This ArrayAccess is non mutable.'); } public function save(Secret $secret) { $this->_em->persist($secret); $this->_em->flush($secret); } }