Open cbichis opened 9 years ago
Hi,
The link decorator is not compatible with Doctrine.
The code should be updated to something similar with:
public function render($context) { $values = array(); if (count($this->vars)) { $actualRow = $this->getCell()->getActualRow(); foreach ($this->vars as $var) { if (is_object($actualRow)) { $method = 'get' . ucfirst($var); $values[] = $actualRow->$method(); } else { $values[] = $actualRow[$var]; } } } $url = vsprintf($this->url, $values); return sprintf('<a href="%s">%s</a>', $url, $context); }
Hi,
The link decorator is not compatible with Doctrine.
The code should be updated to something similar with: