Skip to content

Commit

Permalink
cv fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Stark authored and Johannes Stark committed Aug 19, 2011
1 parent 898727b commit 14a194d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Doctrine/ODM/PHPCR/Mapping/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ public function loadMetadataForClass($className, ClassMetadata $class)
}
$class->setNodeType($documentAnnot->nodeType);

if (isset($documentAnnot->referenceable) && $documentAnnot->referenceable)
{
if (isset($documentAnnot->referenceable) && $documentAnnot->referenceable) {
$class->setReferenceable(true);
}

Expand Down
5 changes: 4 additions & 1 deletion lib/Doctrine/ODM/PHPCR/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,10 @@ public function computeChangeSet(ClassMetadata $class, $document)

$changed = false;
foreach ($actualData as $fieldName => $fieldValue) {
if (!isset($class->fieldMappings[$fieldName]) && !isset($class->childMappings[$fieldName]) && !isset($class->associationsMappings[$fieldName])) {
if (!isset($class->fieldMappings[$fieldName])
&& !isset($class->childMappings[$fieldName])
&& !isset($class->associationsMappings[$fieldName])
) {
continue;
}
if ($class->isCollectionValuedAssociation($fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testCreate()
$refRefTestObj = new RefRefTestObj();

$refTestObj->id = "/functional/refTestObj";
$refRefTestObj->id = "/functional/refRefTestObj";
$refRefTestObj->id = "/functional/refRefTestObj";
$refRefTestObj->name = "referenced";

$refTestObj->reference = $refRefTestObj;
Expand Down

0 comments on commit 14a194d

Please sign in to comment.