lithium\data\Entity::assignTo PHP Метод

assignTo() публичный Метод

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