Undefined method ‚findPairs‘
- Petr Parolek
- Člen | 455
Ahoj,
jak mám prosím dostat další metody z kdyby doctrine do Gedmo. Používám tuto extension:
https://github.com/…e-extensions
Tracy mi hlásí:
BadMethodCallException
Undefined method 'findPairs'. The method name must start with either findBy or findOneBy!
- Petr Parolek
- Člen | 455
vyřešeno možná krkolomně:
<?php
public function fetchMenutypesPairs($menutype) {
$parents = $this->category->findBy(Array('menutype'=>$menutype));
$return = Array();
foreach ($parents as $item) {
$return[$item->id] = $item->title;
}
return $return;
}
?>