Modified functions declaration in the class Commande. WARNING : the bug is back, if you get a error with MongoDB on every page, just comment the line "addCommande()" in the DBseeder.