We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac899c0 + e24a969 commit 11f6d7aCopy full SHA for 11f6d7a
tests/Writing/MixinReferenceableTest.php
@@ -204,4 +204,17 @@ public function testSetUuidButNotReferenceableExisting()
204
{
205
$this->node->setProperty('jcr:uuid', 'dddd61c0-09ab-42a9-87c0-308ccc93aaaa');
206
}
207
+
208
+ public function testCreateReferenceInSingleTransaction()
209
+ {
210
+ $session = $this->renewSession();
211
212
+ $rootNode = $session->getNode('/');
213
+ $child1 = $rootNode->addNode('child1');
214
+ $child2 = $rootNode->addNode('child2');
215
+ $child2->addMixin('mix:referenceable');
216
+ $child1->setProperty('someref', $child2, PropertyType::REFERENCE);
217
218
+ $this->session->save();
219
+ }
220
0 commit comments