File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/Knp/DoctrineBehaviors/ORM Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ public function it_should_modify_update_datetime_when_updated_but_not_the_creati
6666
6767 $ em ->persist ($ entity );
6868 $ em ->flush ();
69+ $ em ->refresh ($ entity );
6970 $ id = $ entity ->getId ();
7071 $ createdAt = $ entity ->getCreatedAt ();
7172 $ em ->clear ();
@@ -99,6 +100,7 @@ public function it_should_return_the_same_datetime_when_not_updated()
99100
100101 $ em ->persist ($ entity );
101102 $ em ->flush ();
103+ $ em ->refresh ($ entity );
102104 $ id = $ entity ->getId ();
103105 $ createdAt = $ entity ->getCreatedAt ();
104106 $ updatedAt = $ entity ->getUpdatedAt ();
@@ -135,6 +137,7 @@ public function it_should_modify_update_datetime_only_once()
135137
136138 $ em ->persist ($ entity );
137139 $ em ->flush ();
140+ $ em ->refresh ($ entity );
138141 $ id = $ entity ->getId ();
139142 $ createdAt = $ entity ->getCreatedAt ();
140143 $ em ->clear ();
You can’t perform that action at this time.
0 commit comments