public function addHandler($name, $handler)
    {
        $tmp        = $this->relationHandlers->getValue($this->entity);
        $tmp[$name] = $handler;
        $this->relationHandlers->setValue($this->entity, $tmp);
    }
public function addHandler($name, $handler)
    {
        $tmp        = $this->relationHandlers->getValue($this->entity);
        $tmp[$name] = $handler;
        $this->relationHandlers->setValue($this->entity, $tmp);
    }
public function addHandler ( $ name , $ handler ) { $ tmp = $ this -> relationHandlers -> getValue ( $ this -> entity ) ; $ tmp [ $ name ] = $ handler ; $ this -> relationHandlers -> setValue ( $ this -> entity , $ tmp ) ; }
Add a relation handler to the entity

@param   string   $name    Field name
@param   Callable $handler The relation handler

@return  void
Add a relation handler to the entity