Inheritance: extends Nextras\Orm\Entity\IProperty, extends IteratorAggregat\IteratorAggregate, extends Countabl\Countable
Ejemplo n.º 1
0
 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);
 }