UnionOfRAD/lithium — pull request #1012 by wnasich (2013-10-09 15:17:15+00:00)
Title: Change Entity::__set() signature to prevent STRICT warning

The magic method `Entity::__set()` is currently breaking STRICT standards with the method signature described in http://www.php.net/manual/en/language.oop5.overloading.php#object.set.

While this normally produces no warning (there's no base class in PHP that actually declares this method) this STRICT warning will appear if you have child classes that implement the proper signature. This is particularly annoying when using Doctrine2 with lithium, as the model proxy classes extend the model classes (which also extend `lithium\data\Entity`), and they do implement the magic method with the proper signature. This obviously creates a STRICT error because the proper signature at the proxy class differs from lithium's.

This proposed fix simply corrects the `__set()` signature on `lithium\data\Entity`, without breaking backwards compatibility with legacy code.
---
Credits: @mariano