Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Update RecordEntity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Oct 19, 2016
1 parent 084e1b8 commit dd5a4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Spiral/ORM/RecordEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ public function getField($name, $default = null, $filter = true)

$value = $this->fields[$name];
if ($value === null && in_array($name, $this->ormSchema[ORM::M_NULLABLE])) {
if (!isset($this->ormSchema[ORM::M_MUTATORS]['accessor'][$name])) {
//if (!isset($this->ormSchema[ORM::M_MUTATORS]['accessor'][$name])) {
//We can skip setters for null values, but not accessors
return $value;
}
//}
}

return parent::getField($name, $default, $filter);
Expand Down

0 comments on commit dd5a4fa

Please sign in to comment.