| @@ 1676-1680 (lines=5) @@ | ||
| 1673 | { |
|
| 1674 | $fixedName = $name; |
|
| 1675 | static::fixPrefix($fixedName); |
|
| 1676 | if (isset($this->_params[$fixedName])) { |
|
| 1677 | return new Value($this, $fixedName); |
|
| 1678 | } elseif (isset($this->_params[$name])) { |
|
| 1679 | return new Value($this, $name); |
|
| 1680 | } |
|
| 1681 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
| 1682 | } |
|
| 1683 | ||
| @@ 1713-1717 (lines=5) @@ | ||
| 1710 | { |
|
| 1711 | $fixedName = $name; |
|
| 1712 | static::fixPrefix($fixedName); |
|
| 1713 | if (isset($this->_params[$fixedName])) { |
|
| 1714 | return new Value($this, $fixedName); |
|
| 1715 | } elseif ($this->_params[$name]) { |
|
| 1716 | return new Value($this, $name); |
|
| 1717 | } |
|
| 1718 | return null; |
|
| 1719 | } |
|
| 1720 | ||