Permalink
Browse files

GH-53 model's Table instance needs to be initialized when deserialized

  • Loading branch information...
kla committed May 30, 2010
1 parent 3e26749 commit c225942b5cc702e6b92f2d5dee77032e04a8e9de
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Model.php
View
@@ -428,6 +428,12 @@ public function __set($name, $value)
throw new UndefinedPropertyException(get_called_class(),$name);
}
public function __wakeup()
{
// make sure the models Table instance gets initialized when waking up
static::table();
}
/**
* Assign a value to an attribute.
*

0 comments on commit c225942

Please sign in to comment.