przerobilem mniej wiecej calego jobeeta i teraz chcialem na jego podstawie sam cos zrobic, na razie tylko troche zmniejac i jestem w 6 dniu przy Limitowaniu Rezultatow
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06
i jak wpisze
public function getActiveJobs($max = 10) { $q = Doctrine_Query::create() ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()) ->limit($max); return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); }
to wywala mi blad
Kod
500 | Internal Server Error | Doctrine_Query_Exception
Cannot define NULL as part of query when defining 'limit'.
stack trace
* at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Query\Abstract.php line 2047]
2044. {
2045. // We should prevent nullable query parts
2046. if ($queryPart === null) {
2047. throw new Doctrine_Query_Exception('Cannot define NULL as part of query when defining \'' . $queryPartName . '\'.');
2048. }
2049.
2050. if ($append) {
Cannot define NULL as part of query when defining 'limit'.
stack trace
* at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Query\Abstract.php line 2047]
2044. {
2045. // We should prevent nullable query parts
2046. if ($queryPart === null) {
2047. throw new Doctrine_Query_Exception('Cannot define NULL as part of query when defining \'' . $queryPartName . '\'.');
2048. }
2049.
2050. if ($append) {
jesli z nawiasow wywale $max = 10 i wpisze w limit samo 10 bez zmiennej to strona sie wyswietla dobrze, ale potem juz sa problemy z tym limotowaniem...
jak to mozna naprawic? jak robilem slowo w slowo z jobeetem to dzialalo, a jak pozmienialem tylko nazwy zmiennych to mam ten blad...
pozdrawiam!