/** * @return integer */ public function getDateModified() { if (!isset($this->loadedFields['dateModified'])) { $this->loadProperties(); } return parent::getDateModified(); }
/** * @param \ride\application\orm\asset\entry\ImageStyleEntry $style * @return null */ public function setStyle(ImageStyleEntry $style = NULL) { if (!isset($this->loadedFields['style'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('style', $this->loadedValues)) { $oldValue = $this->loadedValues['style']; } if (!$oldValue && !$style || $oldValue && $style && $oldValue->getId() === $style->getId()) { $this->style = $style; return; } return parent::setStyle($style); }
/** * @param \ride\application\orm\asset\entry\ImageStyleEntry $style * @return null */ public function setStyle(AliasImageStyleEntry $style = NULL) { $isClean = false; if (!$this->style && !$style || $this->style && $style && $this->style->getId() === $style->getId()) { $isClean = true; } $this->style = $style; if (!$isClean && $this->entryState === self::STATE_CLEAN) { $this->entryState = self::STATE_DIRTY; } }