protected final function MapEntityToRelationalRequest(DomainDatabaseMap $DomainDatabaseMap, Relational\Request $RelationalRequest, Object\RevivalData $AlreadyKnownRevivalData = null) { if ($AlreadyKnownRevivalData !== null) { $AlreadyKnownPropertyIdentifiers = array_keys($AlreadyKnownRevivalData->GetPropertyData()); $AlreadyKnownProperties = $AlreadyKnownRevivalData->GetProperties($AlreadyKnownPropertyIdentifiers); $DomainDatabaseMap->MapEntityToRelationalRequest($this->EntityType, $RelationalRequest, $AlreadyKnownProperties); } else { $DomainDatabaseMap->MapEntityToRelationalRequest($this->EntityType, $RelationalRequest); } }
public function AddToRelationalRequest(DomainDatabaseMap $DomainDatabaseMap, Relational\Request $RelationalRequest) { if ($this->WillJoinRows) { $DomainDatabaseMap->MapEntityToRelationalRequest($this->GetEntityType(), $RelationalRequest); $this->GetToOneRelation()->AddRelationToRequest($RelationalRequest); } }