コード例 #1
0
ファイル: Order.php プロジェクト: shirone/thelia
 /**
  * Checks whether the current state must be recorded as a version
  *
  * @return  boolean
  */
 public function isVersioningNecessary($con = null)
 {
     if ($this->alreadyInSave) {
         return false;
     }
     if ($this->enforceVersion) {
         return true;
     }
     if (ChildOrderQuery::isVersioningEnabled() && ($this->isNew() || $this->isModified()) || $this->isDeleted()) {
         return true;
     }
     if (null !== ($object = $this->getCustomer($con)) && $object->isVersioningNecessary($con)) {
         return true;
     }
     return false;
 }