isColumnModified(DiscountRangePeer::DISCOUNT_ID)) { $this->getDiscount()->setAllowAnonymousClients(false); $this->getDiscount()->setAllClients(false); $this->getDiscount()->setAutoActive(false); } return parent::save($con); } }