Example #1
0
 public function checkForRequiredColumn($additionalCols = array())
 {
     try {
         parent::checkForRequiredColumn($additionalCols);
     } catch (Exception $e) {
         if (APPLICATION_ENV == 'testing') {
             return $this->forceColumn();
         }
         if (APPLICATION_ENV == 'development') {
             $str = $this->_getSqlForCreateColumn();
             throw new Exception('Fix this by adding "' . $str . '" to your BDD.', 0, $e);
         }
         throw $e;
     }
 }
Example #2
0
 public function init()
 {
     parent::init();
     $this->_originalRefRule = $this->_addReferenceMapRule('original', self::ORIGINAL_FIELD, get_class($this->_model));
     //Centurion_Signal::factory('on_dbTable_select')->connect(array($this, 'onSelect'), $this->_model);
 }