public function get($fieldName, $load = true) { if (!in_array(get_class($this), $this->nestingLevelCheckClasses)) { return parent::get($fieldName, $load); } if (empty($this->nested[$fieldName])) { $this->nested[$fieldName] = 0; } $this->nested[$fieldName]++; if ($this->nested[$fieldName] > self::MAX_NESTING_LEVEL) { return $this->_get($fieldName, $load); } return parent::get($fieldName, $load); }
public function get($name, $load = true) { // check if $name is i18n if (in_array($name, $this->getI18nColumns())) { if ($obj = $this->getCurrentI18nObject()) { return $obj->get($name, $load); } else { return null; } } return parent::get($name, $load); }