PHP Class Nextras\Orm\Repository\PersistenceHelper

Afficher le fichier Open project: nextras/orm Class Usage Examples

Protected Properties

Свойство Type Description
$inputQueue array
$outputQueue array

Méthodes publiques

Méthode Description
getCascadeQueue ( Nextras\Orm\Entity\IEntity $entity, Nextras\Orm\Model\IModel $model, boolean $withCascade ) : array

Méthodes protégées

Méthode Description
addRelationshipToQueue ( Nextras\Orm\Entity\IEntity $entity, PropertyMetadata $propertyMeta, Nextras\Orm\Model\IModel $model )
visitEntity ( Nextras\Orm\Entity\IEntity $entity, Nextras\Orm\Model\IModel $model, $withCascade = true )
visitRelationship ( Nextras\Orm\Relationships\IRelationshipCollection $rel, Nextras\Orm\Model\IModel $model )

Method Details

addRelationshipToQueue() protected static méthode

protected static addRelationshipToQueue ( Nextras\Orm\Entity\IEntity $entity, PropertyMetadata $propertyMeta, Nextras\Orm\Model\IModel $model )
$entity Nextras\Orm\Entity\IEntity
$propertyMeta Nextras\Orm\Entity\Reflection\PropertyMetadata
$model Nextras\Orm\Model\IModel

getCascadeQueue() public static méthode

See also: https://en.wikipedia.org/wiki/Topological_sorting#Depth-first_search
public static getCascadeQueue ( Nextras\Orm\Entity\IEntity $entity, Nextras\Orm\Model\IModel $model, boolean $withCascade ) : array
$entity Nextras\Orm\Entity\IEntity
$model Nextras\Orm\Model\IModel
$withCascade boolean
Résultat array

visitEntity() protected static méthode

protected static visitEntity ( Nextras\Orm\Entity\IEntity $entity, Nextras\Orm\Model\IModel $model, $withCascade = true )
$entity Nextras\Orm\Entity\IEntity
$model Nextras\Orm\Model\IModel

visitRelationship() protected static méthode

protected static visitRelationship ( Nextras\Orm\Relationships\IRelationshipCollection $rel, Nextras\Orm\Model\IModel $model )
$rel Nextras\Orm\Relationships\IRelationshipCollection
$model Nextras\Orm\Model\IModel

Property Details

$inputQueue protected_oe static_oe property

protected static array $inputQueue
Résultat array

$outputQueue protected_oe static_oe property

protected static array $outputQueue
Résultat array