* @property int $id
* @property string $username
* @property string $email
**/
final class User extends ActiveRecord
{
public function tableName(): string
{
return '{{%user}}';
}
}
Yes it works, but to validate do not use the AR class directly, use a model, and it will work.
Обсуждают сегодня