Hi guys,
May be, this line (27) are better in the next way:
return $modelInstance->getModelsMetaData()->getIdentityField($modelInstance) ?: implode(',', $modelInstance->getModelsMetaData()->getPrimaryKeyAttributes($modelInstance));
Because, now this not function in the next cases:
- You can have a primary key field that is not identity field (if this is not autoincrement field) and it's name not is "id"
- If you have a primary key composed by multiple fields
P.D. Sorry for my english :(