lithium\data\Entity::assignTo()
Configures protected properties of an Entity
so that it is parented to $parent
.
Parameters
-
object
$parent
-
array
$config
Source
public function assignTo($parent, array $config = []) {
foreach ($config as $key => $val) {
$this->{'_' . $key} = $val;
}
$this->_parent =& $parent;
}