</tr> <tr> <th>Utworzono:</th> <td><?php echo $Klient->getCreatedAt(); ?> </td> </tr> <tr> <th>Grupy:</th> <td><?php $c = new Criteria(); $c->add(KlientGrupaPeer::KLIENT_ID, $Klient->getId()); $grupy = KlientGrupaPeer::doSelect($c); foreach ($grupy as $g) { $grup = GrupaPeer::retrieveByPK($g->getGrupaId()); echo $grup; echo ', '; } ?> </td> </tr> <tr> <th>Cykl:</th> <td><?php $c = new Criteria(); $c->add(CyklPeer::ID, $Klient->getCykl()); $cyk = CyklPeer::doSelectOne($c); echo $cyk; ?> </td>