Ejemplo n.º 1
0
 /**
  * @throws WrongArgumentException
  * @return InetType
  **/
 public function setDefault($default)
 {
     Assert::isTrue(long2ip(ip2long($default)) == $default, "strange default value given - '{$default}'");
     return parent::setDefault($default);
 }
Ejemplo n.º 2
0
 public function toColumnType()
 {
     return parent::toColumnType() . "->\n" . 'setUnsigned(true)';
 }