Skip to content

Commit

Permalink
fix toarray event
Browse files Browse the repository at this point in the history
  • Loading branch information
canni committed Nov 30, 2010
1 parent eec6782 commit 3f0ab30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EMongoEmbeddedDocument.php
Expand Up @@ -79,7 +79,8 @@ public function onAfterToArray($event)

protected function beforeToArray()
{
$this->onBeforeToArray(new CModelEvent($this));
$event = new CModelEvent($this);
$this->onBeforeToArray($event);
return $event->isValid;
}

Expand Down

0 comments on commit 3f0ab30

Please sign in to comment.