Inheritance: extends Nextras\Orm\Entity\IProperty, extends IteratorAggregat\IteratorAggregate, extends Countabl\Countable
コード例 #1
0
ファイル: PersistenceHelper.php プロジェクト: nextras/orm
 protected static function visitRelationship(IRelationshipCollection $rel, IModel $model)
 {
     foreach ($rel->getEntitiesForPersistence() as $entity) {
         self::visitEntity($entity, $model);
     }
     self::$outputQueue[spl_object_hash($rel)] = $rel;
 }
コード例 #2
0
 public function count()
 {
     return $this->relationship->count($this->metadata->name);
 }