Выборка всех записей с плагином doctrine softdeleteable

После подключения модуля softdeleteable к вашей doctrine, в абсолютно все пути формирования запросов будет подставлен добавлен фильтр IS NULL для полей, помеченных этим модулем.

Отключить фильтр можно отдельно для entity или в целом для entity manager, воспольновавшись советами из документации http://atlantic18.github.io/DoctrineExtensions/doc/softdeleteable.html:

// This will disable the SoftDeleteable filter, 
// so entities which were "soft-deleted" will appear in results
$em->getFilters()->disable('soft-deleteable');


// Enable / Disable filter filter, for specified entity (default is enabled for all)
$filter = $em->getFilters()->enable('soft-deleteable');
$filter->disableForEntity('Entity\Article');
$filter->enableForEntity('Entity\Article');


На момент написания этого поста, советы на stackoverflow не предлагали воспользоваться этой, казалось бы, документированной фичей, а предлагали нерабочие варианты, например здесь.

18 комментариев

avatar
Что же сегодня будет
моды для фарминг симулятор 2019
avatar
Если начать заниматся сейчас то можно успеть к лету
trustavia.ru/communication/forum/user/20137/trustavia.ru/communication/forum/user/20137/
arigus.tv/forum/user/74670/arigus.tv/forum/user/74670/
chasmaistriv.com.ua/forum/?PAGE_NAME=profile_view&UID=9667chasmaistriv.com.ua/forum/?PAGE_NAME=profile_view&UID=9667
www.neuroclinic.kz/about/forum/user/9854/www.neuroclinic.kz/about/forum/user/9854/
rvi.cloud/forum/user/1277/rvi.cloud/forum/user/1277/
Проверяй свои кошельки так как
dreldd.ru/forum/user/58472/dreldd.ru/forum/user/58472/
www.mcfr.uz/uz/forum/?PAGE_NAME=profile_view&UID=12942www.mcfr.uz/uz/forum/?PAGE_NAME=profile_view&UID=12942
israclub.ru/communication/forum/?PAGE_NAME=profile_view&UID=11283israclub.ru/communication/forum/?PAGE_NAME=profile_view&UID=11283
www.astrabios.ru/forum/?PAGE_NAME=profile_view&UID=40048www.astrabios.ru/forum/?PAGE_NAME=profile_view&UID=40048
www.skype-teachers.ru/forum/user/16953/www.skype-teachers.ru/forum/user/16953/
У нас тут бывали и такие ребята
omirzakov-raiymbek.mektebi.kz/bt-turaly/page,1,2,8-zhaa-formattay-orytyndy-attestattau-mektepteg-blmn-zhiyntyy.htmlomirzakov-raiymbek.mektebi.kz/bt-turaly/page,1,2,8-zhaa-formattay-orytyndy-attestattau-mektepteg-blmn-zhiyntyy.html
freelancehunt.ru/project/seo-optimizatsiya-sayta-igrovoy-tematiki/471713.htmlfreelancehunt.ru/project/seo-optimizatsiya-sayta-igrovoy-tematiki/471713.html
www.sibrybalka.ru/forum/member.php?u=6275www.sibrybalka.ru/forum/member.php?u=6275
antybandera.info/index.php?newsid=41antybandera.info/index.php?newsid=41
imp72.ru/forum/?PAGE_NAME=profile_view&UID=19913imp72.ru/forum/?PAGE_NAME=profile_view&UID=19913
Тут тоже бывают люди
Моды для Farming Simulator Вконтакте vk.com/fs_mod_17vk.com/fs_mod_17
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber exhibition AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Small Drop Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/452965810/natural-baltic-amber-earrings-13-gr-by?ref=shop_home_active_9&frs=1][img]https://i.etsystatic.com/11536221/r/il/626c31/1598794372/il_794xN.1598794372_v1gv.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber shop AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Round Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/530210864/natural-baltic-amber-earrings-round?ref=shop_home_active_1&frs=1][img]https://i.etsystatic.com/11536221/r/il/5ebebb/1382729854/il_794xN.1382729854_6yx2.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber collection AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Round Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/548585095/natural-baltic-amber-earrings-round?ref=shop_home_active_5&frs=1][img]https://i.etsystatic.com/11536221/r/il/e7b9ac/1781469714/il_794xN.1781469714_7b1k.jpg[/img][/url]
.
avatar
Crystal JEWELRY, lab created crystals, Earrings stud piercing
You are Welcome in my stud earrings shop by AmberWizard! www.etsy.com/shop/Amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=23920898] Stud Earrings round plastic different colors crystals for everybody[/url]
Gift, present, Women girls jewelry for Her
[url=https://www.etsy.com/listing/615726431/crystal-stud-earring-green-emerald-lab?ref=shop_home_active_6&frs=1][img]https://i.etsystatic.com/11536221/r/il/58a012/1600569742/il_794xN.1600569742_8scc.jpg[/img][/url]
.
avatar
Crystal JEWELRY, lab created crystals, Earrings stud piercing
You are Welcome in my stud earrings exhibition by AmberWizard! www.etsy.com/shop/Amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=hdr_shop_menu§ion_id=23612728] Stud Earrings round plastic different colors crystals for everybody[/url]
Gift, present, Women girls jewelry for Her
[url=https://www.etsy.com/listing/600186352/stud-diamond-crystal-tiny-mini-earrings?ref=shop_home_active_8&frs=1][img]https://i.etsystatic.com/11536221/r/il/23794a/1600578492/il_794xN.1600578492_ayq7.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Cat Lovers Earrings, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber shop AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=hdr_shop_menu§ion_id=23932611]AMBER Earrings for Cat Lovers Yellow and brown beads[/url]
Gift, present, Women girls JEWELRY, Cat Lovers Earrings
[url=https://www.etsy.com/listing/477851424/cat-amber-earrings-long-yellow-brown-raw?ref=shop_home_feat_3&frs=1][img]https://i.etsystatic.com/11536221/r/il/5c90a7/1648051005/il_794xN.1648051005_6zej.jpg[/img][/url]
.
avatar
Если начать заниматся сейчас то
[url=https://aksay-museum.ru/forum.php?PAGE_NAME=profile_view&UID=20187]https://aksay-museum.ru/forum.php?PAGE_NAME=profile_view&UID=20187[/url]
[url=http://ivanovo-diving.ru/forum/?PAGE_NAME=profile_view&UID=5506]http://ivanovo-diving.ru/forum/?PAGE_NAME=profile_view&UID=5506[/url]
[url=http://spacecam.ru/forum/user/2164/]http://spacecam.ru/forum/user/2164/[/url]
[url=http://adsk.info/forum/user/25360/]http://adsk.info/forum/user/25360/[/url]
[url=https://assiette.ru/forum/user/3071/]https://assiette.ru/forum/user/3071/[/url]
[url=http://sro-sds.ru/forum/user/24588/]http://sro-sds.ru/forum/user/24588/[/url]
[url=https://www.luxclimat.ru/forum-kondicionery/user/32728/]https://www.luxclimat.ru/forum-kondicionery/user/32728/[/url]
[url=http://www.mega-mir.com/forum/user/179188/]http://www.mega-mir.com/forum/user/179188/[/url]
[url=http://www.zhivicaplus.ru/about/forum/user/1226/]http://www.zhivicaplus.ru/about/forum/user/1226/[/url]
[url=http://www.neuroclinic.kz/about/forum/user/9854/]http://www.neuroclinic.kz/about/forum/user/9854/[/url]
Проверяй свои кошельки так как
[url=http://armavir.red-square.ru/forum/user/33217/]http://armavir.red-square.ru/forum/user/33217/[/url]
[url=http://culart.gov39.ru/forum/user/20167/]http://culart.gov39.ru/forum/user/20167/[/url]
[url=http://dom.mtt.ru/individuals/abonents/forum/?PAGE_NAME=profile_view&UID=6987]http://dom.mtt.ru/individuals/abonents/forum/?PAGE_NAME=profile_view&UID=6987[/url]
[url=http://www.irkduma.ru/forum/user/8477/]http://www.irkduma.ru/forum/user/8477/[/url]
[url=https://dreldd.ru/forum/user/58472/]https://dreldd.ru/forum/user/58472/[/url]
[url=https://bodib.ru/forum/user/7130/]https://bodib.ru/forum/user/7130/[/url]
[url=http://uzaomos.news/forum/user/1637/]http://uzaomos.news/forum/user/1637/[/url]
[url=http://www.rybak-rybaka.ru/forum/user/111319/]http://www.rybak-rybaka.ru/forum/user/111319/[/url]
[url=http://gkh-s.ru/forum/user/1854/]http://gkh-s.ru/forum/user/1854/[/url]
[url=http://xn--80acibe6cgn1h.xn--p1ai/forum/user/28574/]http://xn--80acibe6cgn1h.xn--p1ai/forum/user/28574/[/url]
Тут тоже бывают люди
Моды для Farming Simulator Вконтакте [url=https://vk.com/fs_mod_17]https://vk.com/fs_mod_17[/url]
avatar
AMBER JEWELRY, Cat Lovers Earrings, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber exhibition AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=hdr_shop_menu§ion_id=23932611]AMBER Earrings for Cat Lovers Yellow and brown beads[/url]
Gift, present, Women girls JEWELRY, Cat Lovers Earrings
[url=https://www.etsy.com/listing/477851424/cat-amber-earrings-long-yellow-brown-raw?ref=shop_home_feat_3&frs=1][img]https://i.etsystatic.com/11536221/r/il/5c90a7/1648051005/il_794xN.1648051005_6zej.jpg[/img][/url]
.
avatar
Попробуем посмотреть с другой стороны на это
[url=http://vornjany.of.by/forum/user/1848/]http://vornjany.of.by/forum/user/1848/[/url]
[url=http://xn----itba3agdjbccednsm.xn--p1ai/forum/?PAGE_NAME=profile_view&UID=164434]http://xn----itba3agdjbccednsm.xn--p1ai/forum/?PAGE_NAME=profile_view&UID=164434[/url]
[url=https://sportreestr.ru/communication/forum/user/49092/]https://sportreestr.ru/communication/forum/user/49092/[/url]
[url=https://www.aramil.ru/forum/user/17988/]https://www.aramil.ru/forum/user/17988/[/url]
[url=https://aquilifer.kz/forum/user/96168/]https://aquilifer.kz/forum/user/96168/[/url]
[url=http://kkm-plus.com/forum/user/7357/]http://kkm-plus.com/forum/user/7357/[/url]
[url=http://www.retiario.com/s_%D0%BC%D0%BE%D0%B4%D0%B8+%D1%84%D0%B5%D1%80%D0%BC%D0%B0+2015/]http://www.retiario.com/s_%D0%BC%D0%BE%D0%B4%D0%B8+%D1%84%D0%B5%D1%80%D0%BC%D0%B0+2015/[/url]
[url=https://vladmedicina.ru/forum/profile.php?id=43512]https://vladmedicina.ru/forum/profile.php?id=43512[/url]
[url=http://admsheb.goodsol11.tmweb.ru/forum/user/15319/]http://admsheb.goodsol11.tmweb.ru/forum/user/15319/[/url]
[url=https://mgbot.ru/forum/user/2832/]https://mgbot.ru/forum/user/2832/[/url]
[url=http://avn.life/forum/index.php?PAGE_NAME=profile_view&UID=22044]http://avn.life/forum/index.php?PAGE_NAME=profile_view&UID=22044[/url]
[url=http://bneinoah.ru/forum/user/5704/]http://bneinoah.ru/forum/user/5704/[/url]
[url=http://geliosfoto.ru/forum/?PAGE_NAME=profile_view&UID=17487]http://geliosfoto.ru/forum/?PAGE_NAME=profile_view&UID=17487[/url]
[url=http://reklama-ua.org/index.php?subaction=userinfo&user=dapperunderstud]http://reklama-ua.org/index.php?subaction=userinfo&user=dapperunderstud[/url]
[url=http://i-parking.ru/forum/?PAGE_NAME=profile_view&UID=12577]http://i-parking.ru/forum/?PAGE_NAME=profile_view&UID=12577[/url]
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber store AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Small Drop Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/452965810/natural-baltic-amber-earrings-13-gr-by?ref=shop_home_active_9&frs=1][img]https://i.etsystatic.com/11536221/r/il/626c31/1598794372/il_794xN.1598794372_v1gv.jpg[/img][/url]
.
avatar
Подскажите что делать если не работает ссылка
[url=http://prohunt.kz/forum/user/104800/]http://prohunt.kz/forum/user/104800/[/url]
[url=http://stalkond.ru/communication/forum/user/119728/]http://stalkond.ru/communication/forum/user/119728/[/url]
[url=http://7dach.ru/profile/joblesswanderer/]http://7dach.ru/profile/joblesswanderer/[/url]
[url=http://www.flowersweb.info/forum/user/104393/]http://www.flowersweb.info/forum/user/104393/[/url]
[url=http://parus-perm.ru/communication/forum.php?PAGE_NAME=profile_view&UID=1699]http://parus-perm.ru/communication/forum.php?PAGE_NAME=profile_view&UID=1699[/url]
[url=https://www.luxclimat.ru/forum-kondicionery/user/40561/]https://www.luxclimat.ru/forum-kondicionery/user/40561/[/url]
[url=http://www.fashiontime.ru/upbeatutility86_tsiolkovskiy/]http://www.fashiontime.ru/upbeatutility86_tsiolkovskiy/[/url]
[url=http://ldom.su/forum/user/12550/]http://ldom.su/forum/user/12550/[/url]
[url=http://www.saf-studio.ru/communication/forum/index.php?PAGE_NAME=profile_view&UID=44959]http://www.saf-studio.ru/communication/forum/index.php?PAGE_NAME=profile_view&UID=44959[/url]
[url=https://antenka.com.ua/forum/user/2141/]https://antenka.com.ua/forum/user/2141/[/url]
[url=https://dumskaya.net/user/farmingsimulator/]https://dumskaya.net/user/farmingsimulator/[/url]
[url=http://www.kprfnsk.ru/forum/index.php/user/81399/]http://www.kprfnsk.ru/forum/index.php/user/81399/[/url]
[url=https://gis-zkh.ru/forum/user/965/]https://gis-zkh.ru/forum/user/965/[/url]
[url=http://www.aqwella.ru/communication/forum/user/7012/]http://www.aqwella.ru/communication/forum/user/7012/[/url]
[url=http://portal.ecoworld.ru/index.php?subaction=userinfo&user=racialnarrator4]http://portal.ecoworld.ru/index.php?subaction=userinfo&user=racialnarrator4[/url]
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Pendant
You are Welcome in my Baltic Amber collection AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Pendant for Cat Lovers Yellow and brown beads[/url]
Gift, present, Women girls jewelry, Pendant for Cat Lovers
[url=https://www.etsy.com/listing/510115917/cat-amber-pendant-22-gr-natural-baltic?ref=shop_home_active_4][img]https://i.etsystatic.com/11536221/r/il/052ce5/1648012937/il_794xN.1648012937_mvkj.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Necklace
You are Welcome in my Baltic Amber exhibition AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=hdr_shop_menu§ion_id=17802991]AMBER Pendant for Cat Lovers Yellow and brown beads[/url]
Gift, present, Women girls jewelry, Necklace different colors
[url=https://www.etsy.com/listing/465251064/100-natural-baltic-amber-necklace-weight?ref=shop_home_active_8&frs=1][img]https://i.etsystatic.com/11536221/r/il/7f0681/1646302299/il_794xN.1646302299_d63f.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber collection AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Small Drop Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/452965810/natural-baltic-amber-earrings-13-gr-by?ref=shop_home_active_9&frs=1][img]https://i.etsystatic.com/11536221/r/il/626c31/1598794372/il_794xN.1598794372_v1gv.jpg[/img][/url]
.
avatar
AMBER JEWELRY, Natural BALTIC AMBER, Earrings hoop piercing chandelier
You are Welcome in my Baltic Amber collection AmberWizard! www.etsy.com/shop/amberwizard
[url=https://www.etsy.com/shop/Amberwizard?ref=seller-platform-mcnav§ion_id=17803063]AMBER Earrings Round Yellow beads[/url]
Gift, present, Women girls jewelry
[url=https://www.etsy.com/listing/530210864/natural-baltic-amber-earrings-round?ref=shop_home_active_1&frs=1][img]https://i.etsystatic.com/11536221/r/il/5ebebb/1382729854/il_794xN.1382729854_6yx2.jpg[/img][/url]
.
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.