protected static function visitRelationship(IRelationshipCollection $rel, IModel $model) { foreach ($rel->getEntitiesForPersistence() as $entity) { self::visitEntity($entity, $model); } self::$outputQueue[spl_object_hash($rel)] = $rel; }
public function count() { return $this->relationship->count($this->metadata->name); }