You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foreach ($history->getAllFrozenNodes() as $node) {
530
-
echo $node->getPropertyValue('foo');
530
+
if ($node->hasProperty('foo')) {
531
+
// the root version does not have the property
532
+
echo $node->getPropertyValue('foo') . "\n";
533
+
}
531
534
}
532
535
533
536
// restore an old version
@@ -715,7 +718,7 @@ In a nutshell:
715
718
* for your own things, use nt:unstructured and PHPCR will behave like a NoSQL database
716
719
* if you need to store additional properties or children on existing node types like files, note that while a node can have only one primary type, every node can have any mixin types. Define a mixin type declaring your additional properties, register it with PHPCR and addMixin it to the nodes that need it.
717
720
718
-
You can define your own node types if you want the equivalent of a strictly defined database structure. See [JCR 2.0: 3.7 Node Types](http://www.day.com/specs/jcr/2.0/3_Repository_Model.html#3.7%20Node%20Types) and [JCR 2.0: 19 Node Type Management](http://www.day.com/specs/jcr/2.0/19_Node_Type_Management.html) / [PHPCR Node Type Namespace](http://phpcr.github.com/doc/html/phpcr/nodetype/package-summary.html).
721
+
You can define your own node types if you want the equivalent of a strictly defined database structure. See [JCR 2.0: 3.7 Node Types](http://www.day.com/specs/jcr/2.0/3_Repository_Model.html#3.7%20Node%20Types) and [JCR 2.0: 19 Node Type Management](http://www.day.com/specs/jcr/2.0/19_Node_Type_Management.html) / [PHPCR Node Type Namespace](http://phpcr.github.io/doc/html/index.html).
0 commit comments