Skip to content

Commit

Permalink
[DataFixtures] Fix missing publishedAt in page fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
marekkalnik committed Jun 10, 2012
1 parent ccf951b commit 729261a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DataFixtures/ORM/PageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ public function load(ObjectManager $manager)
$page3->setBreadcrumb('Theodo');
$page3->setDescription("Theodo page");
$page3->setStatus(PageRepository::STATUS_PUBLISH);
$page3->setPublishedAt(new \DateTime('now'));
$page3->setParent($page1);
$page3->setContentType(PageRepository::TYPE_TEXT_HTML);
$manager->persist($page3);
$page3->setCacheable(true);
$page3->setPublic(false);

$manager->persist($page3);

// Create new page (Theodo team)
$page4 = new Page();
$page4->setName('Theodo team');
Expand Down

0 comments on commit 729261a

Please sign in to comment.