spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Fix Spot\Entity custom setter and getter infinite loop prevention #226

Closed studioxyz closed 1 year ago

studioxyz commented 7 years ago

In this fix, isset() is used instead of in_array() to test for the existence of fields added to $this->_inGetter and $this->_inSetter. This is because fields are added to these arrays as keys rather than values.