advance on fixtures

This commit is contained in:
Tykayn 2021-04-21 11:22:50 +02:00 committed by tykayn
parent b6ca330826
commit 108cc473e4
1 changed files with 54 additions and 50 deletions

View File

@ -21,6 +21,8 @@ class CommentFixtures extends Fixture {
// comment on "citron ou orange"
$pollCitronOrange = $emPoll->findOneByCustomUrl( 'citron' );
if ( $pollCitronOrange ) {
$comment = new Comment();
$comment->setOwner( $commenterMan )
->setPseudo( 'the indécis people' )
@ -76,6 +78,8 @@ class CommentFixtures extends Fixture {
$manager->persist( $comment );
$manager->persist( $poll );
$manager->persist( $commenterMan2 );
}
$manager->flush();
}
}