Example #1
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['catchmentid'], 'required'], [['catchmentid'], 'integer'], [['latitude', 'longitude', 'height', 'width', 'angle'], 'number'], [['name', 'sensortype', 'property', 'admin_email'], 'string', 'max' => 255], [['units'], 'string', 'max' => 4], [['catchmentid'], 'exist', 'skipOnError' => true, 'targetClass' => Catchment::className(), 'targetAttribute' => ['catchmentid' => 'id']]];
 }