OmgDef / yii2-multilingual-behavior

Yii2 port of the yii-multilingual-behavior.
146 stars 60 forks source link

Allow configuration of owners primary key #45

Open ebuzzz opened 9 years ago

ebuzzz commented 9 years ago

Currently the primary key attribute is always the primary key of the owner object. Normally this is the only logic thing. But my illogical database structure, which I have to keep backwards compatible, wants to link on a different value. I've added the option to manually set the primary key field. Without configuration, the system works as normal, by defaulting to the owner model's primary key.