Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DoctrineBridge] Fix required guess of boolean fields#16302

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
enumag wants to merge2 commits intosymfony:2.8fromenumag:patch-8

Conversation

@enumag
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

@enumag
Copy link
ContributorAuthor

Currently boolean fields of Doctrine entities are correctly guessed as checkboxes but incorrectly guessed as required.

Copy link
Contributor

Choose a reason for hiding this comment

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

please use'boolean' !== $classMetadata->getTypeOfField($property)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Right... Forgot about the coding style.

@Tobion
Copy link
Contributor

Please also refactor guessType to use DBAL constants.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Should I add SIMPLE_ARRAY and JSON_ARRAY?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if they work as collection form type as well. So lets do that in another PR if necessary.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Not sure why this is here. There doesn't seem to be a corresponding type in Doctrine.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Tobion
Copy link
Contributor

👍 Should be merged in 2.3 by merger!

Status: Reviewed

@enumag
Copy link
ContributorAuthor

@Tobion Thanks! I refactored guessPattern and guessMaxLength to use the constants as well.

@fabpot
Copy link
Member

Thank you@enumag.

fabpot added a commit that referenced this pull requestOct 23, 2015
…mag)This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes#16302).Discussion----------[DoctrineBridge] Fix required guess of boolean fields| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------b21d498 [DoctrineBridge] Fix required guess of boolean fields
@fabpotfabpot closed thisOct 23, 2015
This was referencedOct 27, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@enumag@Tobion@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp