Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function hasProperty($name, $checkVars = true)
 {
     if ($this->hasRelation($name)) {
         return true;
     }
     return parent::hasProperty($name, $checkVars);
 }
Exemplo n.º 2
0
 public function hasProperty($name, $checkVars = true)
 {
     return parent::hasProperty($name, $checkVars);
     // TODO: Change the autogenerated stub
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  * Magic PHP method. Besides parent logic the method adds magic properties `as{Format}`.
  */
 public function __unset($name)
 {
     if (!parent::hasProperty($name, false) && $this->hasFileAttribute($name)) {
         throw new InvalidCallException('Unsetting file attribute ' . get_class($this->owner) . "::{$name}.");
     }
     parent::__unset($name);
 }