public function getRelationshipEntities() { $coll = []; foreach ($this->relationships as $relationship) { if ($relationship->isRelationshipEntity()) { $coll[] = $relationship; } } return $coll; }