Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making sure that all properties are obtained only when asked for

  • Loading branch information...
commit bcbd53cb55a55c78329e28bb2b6919916eaf777b 1 parent 0022d79
@mariano authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  models/BaseEntity.php
View
2  models/BaseEntity.php
@@ -203,7 +203,7 @@ protected function _getData($allProperties = false) {
$method = 'get' . Inflector::camelize($field);
if (method_exists($this, $method) && is_callable(array($this, $method))) {
$data[$field] = $this->{$method}();
- } elseif (property_exists($this, $field)) {
+ } elseif ($allProperties && property_exists($this, $field)) {
$data[$field] = $this->{$field};
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.