Nextras\Orm\Relationships\IRelationshipCollection::getEntitiesForPersistence PHP Method

getEntitiesForPersistence() public method

Returns IEntity or IRelationshipContainer for persistence.
public getEntitiesForPersistence ( ) : mixed[]
return mixed[]
    public function getEntitiesForPersistence();

Usage Example

コード例 #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;
 }