Skip to content

Conversation

@jordisala1991
Copy link
Member

Subject

Part of #50 .

@jordisala1991 jordisala1991 added the dependencies Add or update dependencies label Apr 28, 2022

protected function configureFormFields(FormMapper $form): void
{
if (!$this->hasSubject()) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular case to me it is not correct this way. I would rather do:

$required = !$this->hasSubject() || null === $this->getSubject()->getId();

Copy link
Member Author

@jordisala1991 jordisala1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a minor change, the rest looks great

@aerrasti aerrasti merged commit f328909 into main Apr 29, 2022
@aerrasti aerrasti deleted the feature/sonata4 branch April 29, 2022 08:26
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Add or update dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants