Example #1
0
 /**
  * @param \ride\application\orm\entry\EntryLogEntry $entryLog 
  * @return null
  */
 public function setEntryLog(AliasEntryLogEntry $entryLog = NULL)
 {
     $isClean = false;
     if (!$this->entryLog && !$entryLog || $this->entryLog && $entryLog && $this->entryLog->getId() === $entryLog->getId()) {
         $isClean = true;
     }
     $this->entryLog = $entryLog;
     if (!$isClean && $this->entryState === self::STATE_CLEAN) {
         $this->entryState = self::STATE_DIRTY;
     }
 }
 /**
  * @param \ride\application\orm\entry\EntryLogEntry $entryLog 
  * @return null
  */
 public function setEntryLog(EntryLogEntry $entryLog = NULL)
 {
     if (!isset($this->loadedFields['entryLog'])) {
         $this->loadProperties();
     }
     $oldValue = null;
     if (array_key_exists('entryLog', $this->loadedValues)) {
         $oldValue = $this->loadedValues['entryLog'];
     }
     if (!$oldValue && !$entryLog || $oldValue && $entryLog && $oldValue->getId() === $entryLog->getId()) {
         $this->entryLog = $entryLog;
         return;
     }
     return parent::setEntryLog($entryLog);
 }
Example #3
0
 /**
  * @return integer
  */
 public function getDateModified()
 {
     if (!isset($this->loadedFields['dateModified'])) {
         $this->loadProperties();
     }
     return parent::getDateModified();
 }