OmgDef / yii2-multilingual-behavior

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

Multilingual Model named Attributes #8

Closed Trakina closed 9 years ago

Trakina commented 9 years ago

Tried to create a model named Attributes and the multilingual "find" command doesn't work. I believe it's related to the fact that the framework uses an "attributes" array to store the model data. Can this be fixed so that we can use a multilingual model with that name?

OmgDef commented 9 years ago

@Trakina I do not think that the model name plays a role. Paste your models and DB schema here.

Trakina commented 9 years ago

Here is my schema, this obviously only happens when using multilingual behaviour, if i turn it off, the model works fine.

Here's the Attributes Model: http://pastebin.com/zWFPu2Dy

Also works fine if I rename the model to Attributezzzz or anything else.

tablez

OmgDef commented 9 years ago

@Trakina fixed in d95cc46d4cc9f7056152f7e182a579cea8067fc3