Bonjour tout le monde,
j'ai eu un problème: "Unknown relation alias rayon"
je suis aussi débutante en symfony framework, et j'ai cherché par tout sur le web, j'ai trouvé plusieurs personnes qui ont le même problème désormais je n'ai pas trouvé la solution que me convient, :cry:
pour des informations sur mon code
//ArticlesTable.class.php
//action.class.phpCode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 static public function getArticleRupture() { return Doctrine_Query::create() ->select('a.codearticle','a.ref','a.designationarticle', 'a.designationlongarticle', 'a.stockreel', 'a.minStock', 'a.stocktheorique', 'a.gestionstock', 'a.bloque', 'r.libellerayon') ->from('articles a') ->innerJoin('a.rayon r') ->where('r.coderayon = ?', 'a.coderayon') ->andWhere('a.GestionStock=1') ->andWhere('a.Stockreel<=?','a.MinStock') ->execute(); }
Si quelqu'un peut m'aider je serai très reconnaissante,Code:
1
2
3
4
5 public function executeIndex(sfWebRequest $request) { $this->ruptures = ArticlesTable::getArticleRupture(); }
cordialement,
marwa