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