public function rules()
 {
     return array_merge(parent::rules(), array(array('defaultValue', 'numerical', 'integerOnly' => true)));
 }
示例#2
0
 public function __construct(RedBeanModel $model = null, $attributeName = null)
 {
     $this->maxLength = 11;
     parent::__construct($model, $attributeName);
 }