Connect DB new columns with Model

Help please, I have problems in getting and setting my last tables columns in the forms. When i do print_r to see my object, i get the old_attributies equal to the newest but my table has more now. When i try to get in construct ($this->newAttribute = $shop->newAttribute) i get a error. I has searching i find somenthig like refresh() my active diretory, but im trying and nothing new. HELP PLEASE

Are you caching your DB connection? If so, clear the cache.

Yes i use:
‘class’ => ‘yii\db\Connection’,
‘dsn’ => ‘mysql:host=;dbname=tableName’,
‘username’ => ‘root’,
‘password’ => ‘’,
‘charset’ => ‘utf8’,
‘enableSchemaCache’ => true,
‘schemaCacheDuration’ => 604800,
‘schemaCache’ => ‘cache’

So i can use to clear the cache some like this?

My guess

1 Like