Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter not being applied everywhere. #2104

Closed
AdtHO opened this issue Mar 19, 2020 · 4 comments
Closed

Filter not being applied everywhere. #2104

AdtHO opened this issue Mar 19, 2020 · 4 comments
Labels
Bug A confirmed bug in Extensions that needs fixing. SoftDeleteable Stale

Comments

@AdtHO
Copy link

AdtHO commented Mar 19, 2020

  • I am able to fetch soft-deleted entities using a $this->entityManager->find() , i.e. the EntityManger Interface in doctrine. Not sure why this happens but, looks like the filter is not being applied through this.

  • Also, when using a doctrine query to fetch entities, relations are not being filtered out either.
    Given that I have 2 soft-deletable entities A and B, and entity B related to A with a Many:One relation, when, I enable the filter and fetch Entity A, I will get entities from A filtered, but then the query also fetches every entity B related to A and does not filter out soft-deleted entities from B.

Is there something I am missing out?

  • I have directly added the filter the config/doctrine.php
  • I enable the filters right before using the doctrine queries too.
@AdtHO
Copy link
Author

AdtHO commented Mar 19, 2020

Here are a few related issues too,

#1463

doctrine/orm#6343

@AkenRoberts
Copy link
Member

Are you using a bundle to install extensions in Symfony, or configured manually?

@phansys phansys added the Bug A confirmed bug in Extensions that needs fixing. label Nov 6, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@ahmed-bhs
Copy link

Up @AdtHO any news ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A confirmed bug in Extensions that needs fixing. SoftDeleteable Stale
Projects
None yet
Development

No branches or pull requests

4 participants