1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

advance on fixtures

This commit is contained in:
Tykayn 2021-04-21 11:22:50 +02:00 committed by tykayn
parent b6ca330826
commit 108cc473e4

View File

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