Correction erreur "No table has been specified for the FROM clause"

This commit is contained in:
Michael RICOIS 2011-12-27 15:33:04 +00:00
parent 5e0feca4aa
commit 2b41ec34da

View File

@ -89,6 +89,7 @@ class GestionCommande
{
$commandeStatut = new Application_Model_CommandesStatut();
$sql = $commandeStatut->select()
->from('commandes_statut')
->columns('id')
->where('typeCommande = ?', $type)
->order('ordre DESC')
@ -117,6 +118,7 @@ class GestionCommande
{
$commandeStatut = new Application_Model_CommandesStatut();
$sql = $commandeStatut->select()
->from('commandes_statut')
->columns('id')
->where('typeCommande = ?', $type)
->order('ordre DESC')