File tree 1 file changed +3
-18
lines changed
Filter options
src/Symfony/Component/Messenger/Bridge/Doctrine/Transport
1 file changed +3
-18
lines changed
Original file line number Diff line number Diff line change @@ -223,25 +223,10 @@ public function reject(string $id): bool
223
223
public function setup (): void
224
224
{
225
225
$ configuration = $ this ->driverConnection ->getConfiguration ();
226
- // Since Doctrine 2.9 the getFilterSchemaAssetsExpression is deprecated
227
- $ hasFilterCallback = method_exists ($ configuration , 'getSchemaAssetsFilter ' );
228
-
229
- if ($ hasFilterCallback ) {
230
- $ assetFilter = $ this ->driverConnection ->getConfiguration ()->getSchemaAssetsFilter ();
231
- $ this ->driverConnection ->getConfiguration ()->setSchemaAssetsFilter (null );
232
- } else {
233
- $ assetFilter = $ this ->driverConnection ->getConfiguration ()->getFilterSchemaAssetsExpression ();
234
- $ this ->driverConnection ->getConfiguration ()->setFilterSchemaAssetsExpression (null );
235
- }
236
-
226
+ $ assetFilter = $ configuration ->getFilterSchemaAssetsExpression ();
227
+ $ configuration ->setFilterSchemaAssetsExpression (null );
237
228
$ this ->schemaSynchronizer ->updateSchema ($ this ->getSchema (), true );
238
-
239
- if ($ hasFilterCallback ) {
240
- $ this ->driverConnection ->getConfiguration ()->setSchemaAssetsFilter ($ assetFilter );
241
- } else {
242
- $ this ->driverConnection ->getConfiguration ()->setFilterSchemaAssetsExpression ($ assetFilter );
243
- }
244
-
229
+ $ configuration ->setFilterSchemaAssetsExpression ($ assetFilter );
245
230
$ this ->autoSetup = false ;
246
231
}
247
232
You can’t perform that action at this time.
0 commit comments