-
Notifications
You must be signed in to change notification settings - Fork 155
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
Bulk delete #611
Bulk delete #611
Conversation
loic425
commented
Feb 20, 2023
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Related tickets | fixes #X, partially #Y, mentioned in #Z |
License | MIT |
5473e6f
to
e97d1a3
Compare
f9dc583
to
8ffcbad
Compare
de91364
to
fbbc9d6
Compare
#[Assert\NotBlank] | ||
#[Assert\Email] | ||
#[ORM\Column(name: 'name', nullable: false)] | ||
public ?string $email = null, | ||
) { | ||
} | ||
|
||
public function getId(): ?Uuid | ||
public function getId(): ?int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've simplified this cause I had some troubles. But it works on a test project with an uuid on a mysql database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What were the troubles?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The findById($ids) did not work with SQLite, but I have to check it that again later.
But if there is a bug with that on SQLite, we already have a bug on current implementation.
$this->client->request('GET', '/admin/subscriptions'); | ||
$this->client->submitForm('Bulk delete'); | ||
|
||
$this->assertResponseRedirects(null, expectedCode: Response::HTTP_FOUND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, It checks that the redirect is ok. (it's a code from @Zales0123 on ScienceBookUiTest)
219a7f5
to
735cee2
Compare
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file --> | Related tickets | fixes #494 | License | MIT Not sure if this is right way to fix the CI When installing doctrine/collections ^2.0 doctrine/persistence ^3.0 and PHP 8.1 should be used. doctrine/collections ^2.0 should not be installed on PHP 8.0 What to do with the psalm errors? Commits ------- 4be530e Allow doctrine/collections ^2.0