Check if a key exists in attributes in Model::assign+ refactoring
Merge pull request #3022 from quantum13/model_refactoring

Check if a key exists in attributes in Model::assign + refactoring