Skip to content

Commit

Permalink
Flush whatever of the $andFlush value
Browse files Browse the repository at this point in the history
Take $andFlush into account when it is boolean

If $andFlush is false, save() will be called with true, so $andFlush
will not
be taken into account at all.
  • Loading branch information
Thomas committed Apr 17, 2016
1 parent fd73a88 commit 15f4a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entity/MediaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function save($media, $andFlush = true)
$media->setProviderName(func_get_arg(2));
}

if ($andFlush && is_bool($andFlush)) {
if (is_bool($andFlush)) {
parent::save($media, $andFlush);
} else {
// BC compatibility with previous signature
Expand Down

0 comments on commit 15f4a96

Please sign in to comment.