Permalink
Browse files

git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@131 406649b…

…4-5d4b-11de-8abc-d1c337b90d21
  • Loading branch information...
1 parent 0c6dcd3 commit a9f27ec6293fdf0744eb4d915aa064023bdd23ec XirisR committed Feb 25, 2010
Showing with 237 additions and 222 deletions.
  1. +1 −1 mongodb-morph/src/Morph/Property/HasOne.php
  2. +236 −221 mongodb-morph/src/Morph/Storage.php
@@ -70,7 +70,7 @@ public function setValue($value)
public function getValue(){
if(is_null($this->Value) && !is_null($this->Reference)){
$this->Value = new $this->Type;
- $this->Value = Morph_Storage::instance()->fetchById($this->Reference['$id']);
+ $this->Value = Morph_Storage::instance()->fetchByDbRef($this->Reference);
}
return $this->Value;
}
Oops, something went wrong.

0 comments on commit a9f27ec

Please sign in to comment.