| @@ 1632-1636 (lines=5) @@ | ||
| 1629 | { |
|
| 1630 | $fixedName = $name; |
|
| 1631 | static::fixPrefix($fixedName); |
|
| 1632 | if (isset($this->_params[$fixedName])) { |
|
| 1633 | return new Value($this, $fixedName); |
|
| 1634 | } elseif (isset($this->_params[$name])) { |
|
| 1635 | return new Value($this, $name); |
|
| 1636 | } |
|
| 1637 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
| 1638 | } |
|
| 1639 | ||
| @@ 1669-1673 (lines=5) @@ | ||
| 1666 | { |
|
| 1667 | $fixedName = $name; |
|
| 1668 | static::fixPrefix($fixedName); |
|
| 1669 | if (isset($this->_params[$fixedName])) { |
|
| 1670 | return new Value($this, $fixedName); |
|
| 1671 | } elseif ($this->_params[$name]) { |
|
| 1672 | return new Value($this, $name); |
|
| 1673 | } |
|
| 1674 | return null; |
|
| 1675 | } |
|
| 1676 | ||