| @@ 1704-1708 (lines=5) @@ | ||
| 1701 | { |
|
| 1702 | $fixedName = $name; |
|
| 1703 | static::fixPrefix($fixedName); |
|
| 1704 | if (isset($this->_params[$fixedName])) { |
|
| 1705 | return new Value($this, $fixedName); |
|
| 1706 | } elseif (isset($this->_params[$name])) { |
|
| 1707 | return new Value($this, $name); |
|
| 1708 | } |
|
| 1709 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
| 1710 | } |
|
| 1711 | ||
| @@ 1741-1745 (lines=5) @@ | ||
| 1738 | { |
|
| 1739 | $fixedName = $name; |
|
| 1740 | static::fixPrefix($fixedName); |
|
| 1741 | if (isset($this->_params[$fixedName])) { |
|
| 1742 | return new Value($this, $fixedName); |
|
| 1743 | } elseif ($this->_params[$name]) { |
|
| 1744 | return new Value($this, $name); |
|
| 1745 | } |
|
| 1746 | return null; |
|
| 1747 | } |
|
| 1748 | ||