public function isReadOnly() { if (null === $this->parent || !$this->parent->isReadOnly()) { return $this->readOnly; } return true; }