| @@ 1651-1655 (lines=5) @@ | ||
| 1648 | { |
|
| 1649 | $fixedName = $name; |
|
| 1650 | static::fixPrefix($fixedName); |
|
| 1651 | if (isset($this->_params[$fixedName])) { |
|
| 1652 | return new Value($this, $fixedName); |
|
| 1653 | } elseif (isset($this->_params[$name])) { |
|
| 1654 | return new Value($this, $name); |
|
| 1655 | } |
|
| 1656 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
| 1657 | } |
|
| 1658 | ||
| @@ 1688-1692 (lines=5) @@ | ||
| 1685 | { |
|
| 1686 | $fixedName = $name; |
|
| 1687 | static::fixPrefix($fixedName); |
|
| 1688 | if (isset($this->_params[$fixedName])) { |
|
| 1689 | return new Value($this, $fixedName); |
|
| 1690 | } elseif ($this->_params[$name]) { |
|
| 1691 | return new Value($this, $name); |
|
| 1692 | } |
|
| 1693 | return null; |
|
| 1694 | } |
|
| 1695 | ||