Skip to content

Commit

Permalink
Update SoftDeleteable to work with Doctrine 3.1 (#2801)
Browse files Browse the repository at this point in the history
* Update \Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter::addFilterConstraint to make compatible with \Doctrine\ORM\Query\Filter\SQLFilter::addFilterConstraint

* feat: [fix-SoftDeleteableFilter-addFilterConstraint-compatibility] Update only the return type to keep backward compatibility

* Remove annotations from SOftdeletableentity

* Revert "Remove annotations from SOftdeletableentity"

This reverts commit af403be.

---------

Co-authored-by: Oussama Mkadmini <[email protected]>
Co-authored-by: Fran Moreno <[email protected]>
  • Loading branch information
3 people committed Jun 9, 2024
1 parent c16c401 commit 236c91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SoftDeleteable/Filter/SoftDeleteableFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SoftDeleteableFilter extends SQLFilter
*
* @return string
*/
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias): string
{
$class = $targetEntity->getName();
if (true === ($this->disabled[$class] ?? false)) {
Expand Down

0 comments on commit 236c91c

Please sign in to comment.