Permalink
Browse files

Don't override loaded property definitions with properties from DB

  • Loading branch information...
bergie committed Dec 9, 2011
1 parent 4a1de78 commit 2c08048ae411f2f54402605cb6ec546c62e6e7fe
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Midgard/PHPCR/Node.php
@@ -550,6 +550,9 @@ private function populatePropertiesUndefined()
continue;
}
$crName = NodeMapper::getPHPCRProperty($property->name);
+ if (isset($this->properties[$crName])) {
+ continue;
+ }
$this->properties[$crName] = new Property($this, $crName);
}
}

0 comments on commit 2c08048

Please sign in to comment.