Storm\Drivers\Base\Mapping\Mappings\RelationshipPropertyRelationMapping::__construct PHP Метод

__construct() публичный Метод

public __construct ( Storm\Core\Object\IRelationshipProperty $RelationshipProperty, Storm\Core\Relational\IRelation $Relation )
$RelationshipProperty Storm\Core\Object\IRelationshipProperty
$Relation Storm\Core\Relational\IRelation
    public function __construct(Object\IRelationshipProperty $RelationshipProperty, Relational\IRelation $Relation)
    {
        parent::__construct($RelationshipProperty);
        $this->RelationshipProperty = $RelationshipProperty;
        $this->EntityType = $RelationshipProperty->GetEntityType();
        $this->Relation = $Relation;
    }

Usage Example

 public function __construct(Object\IEntityProperty $EntityProperty, Relational\IToOneRelation $ToOneRelation)
 {
     parent::__construct($EntityProperty, $ToOneRelation);
     $this->EntityProperty = $EntityProperty;
     $this->ToOneRelation = $ToOneRelation;
 }
All Usage Examples Of Storm\Drivers\Base\Mapping\Mappings\RelationshipPropertyRelationMapping::__construct