Skip to content

Conversation

@lichunqiang
Copy link
Contributor

If the model's primary key is multiple: ['lang_id', 'code]
The $pk will be an array of primary key combined data, so we can use it
directly to find the data

If the model's primary key is multiple: ['lang_id', 'code]
The $pk will be an array of primary key combined data, so we can use it
directly to find the data
disem pushed a commit that referenced this pull request Dec 16, 2015
[bugfix] Fixed can not save bug when model's primary key is multiple.
@disem disem merged commit 6d7a968 into yii2mod:master Dec 16, 2015
@disem
Copy link

disem commented Dec 16, 2015

Thank you!

@lichunqiang lichunqiang deleted the fix-multiple-field-pk branch December 16, 2015 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants