Salut, Waouh... Je comprend pas grand chose voire pratiquement rien.
Tu as combien de requêtes pour tes 278 résultats ? En fait tu extraits toute ta base de données ? ++ PS : je sais pas si je serais d'un bon secour :-( 2007/8/21, Guillaume badin <[EMAIL PROTECTED]>: > > > > > On 20 août, 11:45, "lionel chanson" <[EMAIL PROTECTED]> wrote: > > Salut Guillaume, > > Peux-tu poster ou mettre surhttp://pastebin.com/ton code stp ( le > fichier > > schema ainsi que la requête ) > > propel: > trilogie_trigrammes_affaires: > _attributes: { phpName: TrigrammeAffaire } > id: { type: integer, required: true, primaryKey: true, > autoincrement: true } > tri : { type: varchar , size: 5 , index: true } > created_at: > > trilogie_trigrammes_devs: > _attributes: { phpName: TrigrammeDev } > id: { type: integer, required: true, primaryKey: true, > autoincrement: true } > tri : { type: varchar , size: 5 , index: true } > created_at: > > trilogie_trigrammes_preps: > _attributes: { phpName: TrigrammePrep } > id: { type: integer, required: true, primaryKey: true, > autoincrement: true } > tri : { type: varchar , size: 5 , index: true } > nom: varchar(50) > prenom: varchar(50) > created_at: > > trilogie_trigrammes_alls: > _attributes: { phpName: TrigrammeAll } > id: { type: integer, required: true, primaryKey: true, > autoincrement: true } > tri : { type: varchar , size: 5 , index: true } > nom: varchar(50) > prenom: varchar(50) > created_at: > > trilogie_plans: > _attributes: { phpName: Plan } > id: > nom: { type: varchar , size: 10 , index: true } > > trilogie_plans_syns: > _attributes: { phpName: PlanSyn } > id: > nom: { type: varchar , size: 10 , index: true } > > trilogie_reseau: > _attributes: { phpName: Reseau } > id: > nom: { type: varchar , size: 10 , index: true } > > trilogie_suivis_reseaus: > _attributes: { phpName: SuiviReseau } > id: > suivi_id: { type: integer, foreignTable: > trilogie_suivis , foreignReference: id , onDelete: cascade } > reseau_id: > > trilogie_suivis_reseaus_specs: > _attributes: { phpName: SuiviReseauSpec } > id: > suivi_id: { type: integer, foreignTable: trilogie_suivis , > foreignReference: id , onDelete: cascade } > reseau_id: > > trilogie_suivis_trigrammes_alls: > _attributes: { phpName: SuiviTrigrammeAll } > id: > suivi_id: { type: integer, foreignTable: trilogie_suivis , > foreignReference: id , onDelete: cascade } > trigramme_all_id: > > trilogie_percents: > _attributes: { phpName: Percent } > id: > nom: { type: varchar , size: 15 , index: true } > couleur: varchar(6) > > trilogie_zones: > _attributes: { phpName: Zone } > id: > nom: { type: varchar , size: 25 , index: true } > > trilogie_suivis: > _attributes: { phpName: Suivi} > id: > num: { type: integer , index: true } > nom: varchar(50) > trigramme_affaire_gruge: { type: varchar , size: 5 } > trigramme_affaire_id: > mes: timestamp > pc: varchar(25) > fa: boolean > plan_gruge: varchar(10) > plan_syn_gruge: varchar(10) > plan_id: > plan_syn_id: > adresse: boolean > livre: varchar(50) > box: varchar(50) > trigramme_prep_id: > trigramme_dev_id: > commentaire: longvarchar > cours: boolean > termine: boolean > percent_gruge: varchar(15) > zone_id: > percent_id: > pvmes: timestamp > pvformation: timestamp > created_at: > > > voila comme tu peux le voir il y a beaucoup de cle etrangere dans > trilogie_suivi > > voici la requete > > > public static function doSelectJoinAll(Criteria $c, $con = null) > { > $c = clone $c; > > if ($c->getDbName() == > Propel::getDefaultDB()) { > $c->setDbName(self::DATABASE_NAME); > } > > SuiviPeer::addSelectColumns($c); > $startcol2 = (SuiviPeer::NUM_COLUMNS - > SuiviPeer::NUM_LAZY_LOAD_COLUMNS) + 1; > > TrigrammeAffairePeer::addSelectColumns($c); > $startcol3 = $startcol2 + > TrigrammeAffairePeer::NUM_COLUMNS; > > PlanPeer::addSelectColumns($c); > $startcol4 = $startcol3 + PlanPeer::NUM_COLUMNS; > > PlanSynPeer::addSelectColumns($c); > $startcol5 = $startcol4 + PlanSynPeer::NUM_COLUMNS; > > TrigrammePrepPeer::addSelectColumns($c); > $startcol6 = $startcol5 + TrigrammePrepPeer::NUM_COLUMNS; > > TrigrammeDevPeer::addSelectColumns($c); > $startcol7 = $startcol6 + TrigrammeDevPeer::NUM_COLUMNS; > > ZonePeer::addSelectColumns($c); > $startcol8 = $startcol7 + ZonePeer::NUM_COLUMNS; > > PercentPeer::addSelectColumns($c); > $startcol9 = $startcol8 + PercentPeer::NUM_COLUMNS; > > $c->addJoin(SuiviPeer::TRIGRAMME_AFFAIRE_ID, > TrigrammeAffairePeer::ID); > > $c->addJoin(SuiviPeer::PLAN_ID, PlanPeer::ID); > > $c->addJoin(SuiviPeer::PLAN_SYN_ID, PlanSynPeer::ID); > > $c->addJoin(SuiviPeer::TRIGRAMME_PREP_ID, > TrigrammePrepPeer::ID); > > $c->addJoin(SuiviPeer::TRIGRAMME_DEV_ID, > TrigrammeDevPeer::ID); > > $c->addJoin(SuiviPeer::ZONE_ID, ZonePeer::ID); > > $c->addJoin(SuiviPeer::PERCENT_ID, PercentPeer::ID); > > $rs = BasePeer::doSelect($c, $con); > $results = array(); > > while($rs->next()) { > > $omClass = SuiviPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj1 = new $cls(); > $obj1->hydrate($rs); > > > > $omClass = TrigrammeAffairePeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj2 = new $cls(); > $obj2->hydrate($rs, $startcol2); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj2 = > $temp_obj1->getTrigrammeAffaire(); if > ($temp_obj2- > >getPrimaryKey() === $obj2->getPrimaryKey()) { > $newObject = false; > > $temp_obj2->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj2->initSuivis(); > $obj2->addSuivi($obj1); > } > > > > $omClass = PlanPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj3 = new $cls(); > $obj3->hydrate($rs, $startcol3); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj3 = > $temp_obj1->getPlan(); if ($temp_obj3- > >getPrimaryKey() === $obj3->getPrimaryKey()) { > $newObject = false; > > $temp_obj3->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj3->initSuivis(); > $obj3->addSuivi($obj1); > } > > > > $omClass = PlanSynPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj4 = new $cls(); > $obj4->hydrate($rs, $startcol4); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj4 = > $temp_obj1->getPlanSyn(); if ($temp_obj4- > >getPrimaryKey() === $obj4->getPrimaryKey()) { > $newObject = false; > > $temp_obj4->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj4->initSuivis(); > $obj4->addSuivi($obj1); > } > > > > $omClass = TrigrammePrepPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj5 = new $cls(); > $obj5->hydrate($rs, $startcol5); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj5 = > $temp_obj1->getTrigrammePrep(); if ($temp_obj5- > >getPrimaryKey() === $obj5->getPrimaryKey()) { > $newObject = false; > > $temp_obj5->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj5->initSuivis(); > $obj5->addSuivi($obj1); > } > > > > $omClass = TrigrammeDevPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj6 = new $cls(); > $obj6->hydrate($rs, $startcol6); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj6 = > $temp_obj1->getTrigrammeDev(); if ($temp_obj6- > >getPrimaryKey() === $obj6->getPrimaryKey()) { > $newObject = false; > > $temp_obj6->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj6->initSuivis(); > $obj6->addSuivi($obj1); > } > > > > $omClass = ZonePeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj7 = new $cls(); > $obj7->hydrate($rs, $startcol7); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj7 = > $temp_obj1->getZone(); if ($temp_obj7- > >getPrimaryKey() === $obj7->getPrimaryKey()) { > $newObject = false; > > $temp_obj7->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj7->initSuivis(); > $obj7->addSuivi($obj1); > } > > > > $omClass = PercentPeer::getOMClass(); > > > $cls = Propel::import($omClass); > $obj8 = new $cls(); > $obj8->hydrate($rs, $startcol8); > > $newObject = true; > for ($j=0, $resCount=count($results); $j < > $resCount; $j++) { > $temp_obj1 = $results[$j]; > $temp_obj8 = > $temp_obj1->getPercent(); if ($temp_obj8- > >getPrimaryKey() === $obj8->getPrimaryKey()) { > $newObject = false; > > $temp_obj8->addSuivi($obj1); > break; > } > } > > if ($newObject) { > $obj8->initSuivis(); > $obj8->addSuivi($obj1); > } > > $results[] = $obj1; > } > return $results; > } > > > voila en esperant que cela vous donne une idée > > > > > --~--~---------~--~----~------------~-------~--~----~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupe "Symfony-fr" de Google Groupes. Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse [email protected] Pour résilier votre abonnement à ce groupe, envoyez un e-mail à l'adresse [EMAIL PROTECTED] Pour afficher d'autres options, visitez ce groupe à l'adresse http://groups.google.com/group/symfony-fr?hl=fr -~----------~----~----~----~------~----~------~--~---
