/** * @inheritdoc */ public function hasProperty($name, $checkVars = true) { if ($this->hasRelation($name)) { return true; } return parent::hasProperty($name, $checkVars); }
public function hasProperty($name, $checkVars = true) { return parent::hasProperty($name, $checkVars); // TODO: Change the autogenerated stub }
/** * @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); }