| @@ 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 (isset($this->_params[$name])) { |
|
| 1672 | return new Value($this, $name); |
|
| 1673 | } |
|
| 1674 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
| 1675 | } |
|
| 1676 | ||
| @@ 1706-1710 (lines=5) @@ | ||
| 1703 | { |
|
| 1704 | $fixedName = $name; |
|
| 1705 | static::fixPrefix($fixedName); |
|
| 1706 | if (isset($this->_params[$fixedName])) { |
|
| 1707 | return new Value($this, $fixedName); |
|
| 1708 | } elseif ($this->_params[$name]) { |
|
| 1709 | return new Value($this, $name); |
|
| 1710 | } |
|
| 1711 | return null; |
|
| 1712 | } |
|
| 1713 | ||