_relationships)) { $blueprint = $this->getBlueprint(); $options = $blueprint->get('config/relationships', []); $parent = FlexIdentifier::createFromObject($this); $this->_relationships = new Relationships($parent, $options); } return $this->_relationships; } /** * @param string $name * @return RelationshipInterface|null */ public function getRelationship(string $name): ?RelationshipInterface { return $this->getRelationships()[$name]; } protected function resetRelationships(): void { $this->_relationships = null; } /** * @param iterable $collection * @return array */ protected function buildFlexIdentifierList(iterable $collection): array { $list = []; foreach ($collection as $object) { $list[] = FlexIdentifier::createFromObject($object); } return $list; } }