bupy7 / yii2-activerecord-history

This extension adds storage history of changes to the ActiveRecord model.
26 stars 17 forks source link

Unused code #5

Closed Eseperio closed 6 years ago

Eseperio commented 6 years ago

https://github.com/bupy7/yii2-activerecord-history/blob/90c29e0c8747e4701674271ebefe3c3eff34c305/behaviors/History.php#L203

Why is calling $this->getPrimaryKey() and then getting owner property?

bupy7 commented 6 years ago

@Eseperio Primary key may be not only id as well as some)id, myCustomId and etc.