using yii(2)/db/ActiveRecord on web host site

Hi. I am trying to use ActiveRecord CRUD in yii2.

Have: - mySQL database connectivity, (user has all permissions),

  - a table with a varchar field called "email",

  - an ActiveRecord Model file for the correct table (*test*) with a

  - function in it with code like the lines below.

Am following: AR examples in the guide for yii 2.0 (

// update an existing row of data

$test = Test::findOne(123);

$test->email = ‘’;


When I save I only get a new row, not with the "email" data above.

I can do it using the DAO calls, but not AR. Any ideas? Any way to actually see the SQL code for the update?

Have you checked your column validators?