Merge pull request #7219 from silverstripe/pulls/4.0/dbcomposite-properties

BUGFIX: DBComposite doesn't allow arbitrary property assignment
This commit is contained in:
Damian Mooyman 2017-07-31 10:11:58 +12:00 committed by GitHub
commit 90f6710020

View File

@ -240,8 +240,10 @@ abstract class DBComposite extends DBField
{
$this->objCacheClear();
// Skip non-db fields
// Non-db fields get assigned as normal properties
if (!$this->hasField($field)) {
parent::setField($field, $value);
return $this;
}