@@ 100-105 (lines=6) @@ | ||
97 | $this->query[$mapping['name'] . '.' . $key] = $dbRef[$key]; |
|
98 | } |
|
99 | } |
|
100 | } else { |
|
101 | @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED); |
|
102 | ||
103 | $dbRef = $this->dm->createReference($document); |
|
104 | $this->query = $dbRef; |
|
105 | } |
|
106 | ||
107 | return $this; |
|
108 | } |
|
@@ 144-149 (lines=6) @@ | ||
141 | $this->query[$mapping['name']]['$elemMatch'][$key] = $dbRef[$key]; |
|
142 | } |
|
143 | } |
|
144 | } else { |
|
145 | @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED); |
|
146 | ||
147 | $dbRef = $this->dm->createReference($document); |
|
148 | $this->query['$elemMatch'] = $dbRef; |
|
149 | } |
|
150 | ||
151 | return $this; |
|
152 | } |