Found the solution . I have to rewrite the buildInput method  in my decorator
adding some short condition:

public function buildInput()
    {
        $element = $this->getElement();
        $helper  = $element->helper;
        
                if($element->getBelongsTo())
                {
                        $getName=$element->getBelongsTo().'['. 
$element->getName().']';
                }else{
                        $getName= $element->getName();
                }
                
                return '<td>' . $element->getView()->$helper(
            $getName,
            $element->getValue(),
            $element->getAttribs(),
            $element->options
        ).'</td>';
    }

It's working fine for me at least for one level array (all i need for now).

Thanks

Eduardo
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/setBelongsTo-doesn-t-work-tp2286743p2286799.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to