Nextras\Orm\Entity\IEntity::getProperty PHP Method

getProperty() public method

Returns property contents.
public getProperty ( string $name ) : mixed | Nextras\Orm\Entity\IPropertyContainer
$name string
return mixed | Nextras\Orm\Entity\IPropertyContainer
    public function getProperty($name);

Usage Example

コード例 #1
0
ファイル: OneHasMany.php プロジェクト: nextras/orm
 protected function updateRelationshipRemove(IEntity $entity)
 {
     if (!$this->metadata->relationship->property) {
         return;
     }
     $this->updatingReverseRelationship = true;
     $entity->getProperty($this->metadata->relationship->property)->setInjectedValue(null);
     $this->updatingReverseRelationship = false;
 }
All Usage Examples Of Nextras\Orm\Entity\IEntity::getProperty