Storm\Core\Object\PersistedRelationship::GetChildPersistenceData PHP Метод

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

public GetChildPersistenceData ( ) : Identity
Результат Identity
    public function GetChildPersistenceData()
    {
        if (!$this->IsIdentifying) {
            throw new ObjectException('An non-identifying relationship does not contain child persistence data');
        }
        return $this->ChildPersistenceData;
    }

Usage Example

 public function testSuppliedIdentityAndPersistenceDataAreEqualToGetterMethods()
 {
     $PersistedRelationship = new PersistedRelationship($this->Identity1, null, $this->PersistenceData);
     $this->assertEquals($PersistedRelationship->GetParentIdentity(), $this->Identity1);
     $this->assertEquals($PersistedRelationship->GetChildPersistenceData(), $this->PersistenceData);
 }