/** * @param \ride\web\cms\orm\entry\TextEntry $text * @return null */ public function setText(TextEntry $text = NULL) { if (!isset($this->loadedFields['text'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('text', $this->loadedValues)) { $oldValue = $this->loadedValues['text']; } if (!$oldValue && !$text || $oldValue && $text && $oldValue->getId() === $text->getId()) { $this->text = $text; return; } return parent::setText($text); }