You are here

protected function EntityMetadataWrapper::updateParent in Entity API 7

Updates the parent data structure of a data property with the latest data value.

2 calls to EntityMetadataWrapper::updateParent()
EntityDrupalWrapper::set in includes/entity.wrapper.inc
Overridden to support setting the entity by either the object or the id.
EntityMetadataWrapper::set in includes/entity.wrapper.inc
Set a new data value.

File

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

Class

EntityMetadataWrapper
A common base class for all wrappers.

Code

protected function updateParent($value) {
  if (isset($this->info['parent'])) {
    $this->info['parent']
      ->setProperty($this->info['name'], $value);
  }
}