Skip to content

Commit

Permalink
typo fixed, TODO added
Browse files Browse the repository at this point in the history
  • Loading branch information
zwerg committed Jul 30, 2011
1 parent c1ec524 commit 9757384
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Doctrine/ODM/PHPCR/UnitOfWork.php
Expand Up @@ -514,7 +514,7 @@ public function computeChangeSet(ClassMetadata $class, $document)

if (!isset($this->originalData[$oid])) {
// Entity is New and should be inserted
$this->oiginalData[$oid] = $actualData;
$this->originalData[$oid] = $actualData;
$this->documentChangesets[$oid] = $actualData;
$this->scheduledInserts[$oid] = $document;
} else {
Expand Down Expand Up @@ -711,6 +711,7 @@ public function flush($persist_to_backend = true)

if ($class->referenceable) {
$node->addMixin("mix:referenceable");
// TODO make shure uuid is unique
$node->setProperty("jcr:uuid", \PHPCR\Util\UUIDHelper::generateUUID());
}

Expand Down

0 comments on commit 9757384

Please sign in to comment.