示例#1
0
 public function preInsert(PropelPDO $con = null)
 {
     if ($this->getPartnerId() === Partner::MEDIA_SERVER_PARTNER_ID) {
         $this->setDc(kDataCenterMgr::getCurrentDcId());
     }
     return parent::preInsert($con);
 }
示例#2
0
 /**
  * Applies default values to this object.
  * This method should be called from the object's constructor (or equivalent initialization method).
  * @see __construct()
  */
 public function applyDefaultValues()
 {
     parent::applyDefaultValues();
     $this->setType(serverNodeType::EDGE);
 }