/** * @inheritdoc */ public function getRelations() { if (!array_key_exists('relations', $this->cache)) { $this->cache['relations'] = $this->storage->getRelations(); } return $this->cache['relations']; }
/** * @return \Staffim\DTOBundle\MappingStorage\Config */ protected function getRelations() { return $this->mappingStorage->getRelations(); }
/** * @param array $propertyName * @return bool */ public function hasRelation(array $propertyPath) { return $this->storage->getRelations()->hasPath($propertyPath, false); }