Get primary key when upgrade Yii2

Hello,

I was using the Yii2 2.0.7 and now I’ve upgraded to the latest version.

My primary key is setup with uniqueidentifier type and the default value is: newsequentialid()

So after insert an entry, I do the code: $modelX->getPrimaryKey(); It returns null

Can someone help me? It is working on 2.0.7

That sounds like a bug. Please report it to GitHub issue tracker: https://github.com/yiisoft/yii2/issues/new

Thank you!