Skip to content

Commit f666c36

Browse files
committed
solved the multiple child node mystery
1 parent 0b69c71 commit f666c36

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/PHPCR/Util/CND/Parser/CndParser.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class CndParser extends AbstractParser
5353
private $NOQUERYORDER = array('nqord', 'noqueryorder'); //, 'variant' => true),
5454

5555
// child node attributes
56-
private $SNS = array('*', 'sns'); //, 'variant' => true),
56+
// multiple is actually a jackrabbit specific synonym for sns
57+
// http://www.mail-archive.com/users@jackrabbit.apache.org/msg19268.html
58+
private $SNS = array('*', 'sns', 'multiple'); //, 'variant' => true),
5759

5860
/**
5961
* @var NodeTypeManagerInterface
@@ -594,18 +596,6 @@ protected function parseChildNodeAttributes(
594596
NodeTypeTemplateInterface $parentType,
595597
NodeDefinitionTemplateInterface $childType
596598
) {
597-
/**
598-
* TODO: Clarify this problem
599-
*
600-
* Either there is a bug in the Jackrabbit builtin nodetypes CND file here:
601-
*
602-
* [rep:Group] > rep:Authorizable
603-
* + rep:members (rep:Members) = rep:Members multiple protected VERSION
604-
* - rep:members (WEAKREFERENCE) protected multiple < 'rep:Authorizable'
605-
*
606-
* or there is an error in the spec that says that a node attribute cannot be
607-
* "multiple".
608-
*/
609599
while(true) {
610600
if ($this->checkTokenIn(Token::TK_IDENTIFIER, $this->PRIMARYITEM)) {
611601
$parentType->setPrimaryItemName($childType->getName());

0 commit comments

Comments
 (0)