You are here

public function EntityDrupalWrapper::__wakeup in Entity API 7

File

includes/entity.wrapper.inc, line 983
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityDrupalWrapper
Provides a wrapper for entities registrered in hook_entity_info().

Code

public function __wakeup() {
  $this
    ->setUp();
  if ($this->id !== FALSE) {

    // Make sure data is set, so the entity will be loaded when needed.
    $this->data = FALSE;
  }
}