I add a field at a table at my database,and I add manually at my model the field
* @property string $floor
......
[['floor'], 'required'],
and at "new" form I add this code,but I have the error Getting unknown property: app\models\Buildobjects::floor
How can I fix it?
<?= $form->field($model, 'floor')->dropDownList(
$fl,
['prompt' => 'Set floor']);?>
[edit]I set capital the first letter bellow at my table and it worked at my apache!
public static function tableName() {
return 'Buildobjects';
}