Example #1
0
 /**
  * Construct
  * @param   string  $name
  * @param   string  $default
  * @param   string  $sqlType
  * @param   boolean $null
  */
 public function __construct($name, $default, $sqlType = null, $null = true)
 {
     $this->_originalDefault = $default;
     parent::__construct($name, $default, $sqlType, $null);
     if ($this->_isMissingDefaultForgedAsEmptyString()) {
         $this->_default = null;
     }
 }
Example #2
0
 /**
  * Construct
  * @param   string  $name
  * @param   string  $default
  * @param   string  $sqlType
  * @param   boolean $null
  */
 public function __construct($name, $default, $sqlType = null, $null = true)
 {
     parent::__construct($name, $this->_extractValueFromDefault($default), $sqlType, $null);
 }