Small changes in the code to make something run again...
This commit is contained in:
@@ -21,27 +21,27 @@ class ClubsViewTest extends HtmlView
|
||||
|
||||
$this->club = $this->clubs[0];
|
||||
|
||||
$c = $factory->loadById(1);
|
||||
$p = $c->getPresident();
|
||||
$id = $p->getId();
|
||||
// $c = $factory->loadById(1);
|
||||
// $p = $c->getPresident();
|
||||
// $id = $p->getId();
|
||||
|
||||
$places = $c->getPlaces();
|
||||
// $places[0]->setName("abc");
|
||||
// $places[0]->save();
|
||||
// $places = $c->getPlaces();
|
||||
// // $places[0]->setName("abc");
|
||||
// // $places[0]->save();
|
||||
|
||||
$pfactory = new CommonClubsModelFactoryPlace();
|
||||
$np = $pfactory->createNew();
|
||||
$np->setName('MyName');
|
||||
$np->setClub($c);
|
||||
// $np->save();
|
||||
$np->getId();
|
||||
// $pfactory = new CommonClubsModelFactoryPlace();
|
||||
// $np = $pfactory->createNew();
|
||||
// $np->setName('MyName');
|
||||
// $np->setClub($c);
|
||||
// // $np->save();
|
||||
// $np->getId();
|
||||
|
||||
$np = $c->getPlaces()[2];
|
||||
$np->getName();
|
||||
// $np->setName('foo2 with new Name');
|
||||
// $np->save();
|
||||
// $np->delete();
|
||||
$this->log = $np;
|
||||
// $np = $c->getPlaces()[2];
|
||||
// $np->getName();
|
||||
// // $np->setName('foo2 with new Name');
|
||||
// // $np->save();
|
||||
// // $np->delete();
|
||||
// $this->log = $np;
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user