Skip to content

Make default string length of 255 configurable in SchemaTool.#12206

Draft
beberlei wants to merge 1 commit intodoctrine:3.7.xfrom
beberlei:ORM-DefaultStringSchemaLength
Draft

Make default string length of 255 configurable in SchemaTool.#12206
beberlei wants to merge 1 commit intodoctrine:3.7.xfrom
beberlei:ORM-DefaultStringSchemaLength

Conversation

@beberlei
Copy link
Member

@beberlei beberlei commented Oct 8, 2025

Unsure about the problem space yet, since our assumption was that ORM does not set the default to 255 yet, but apparently it does here in SchemaTool for type === 'string'.

Fixes #12205

@beberlei beberlei marked this pull request as draft October 8, 2025 12:02

public function getDefaultStringTypeSchemaLength(): ?int
{
return $this->attributes['defaultStringTypeSchemaLength'] ?? 255;
Copy link
Member

Choose a reason for hiding this comment

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

this can never return null Setting null through the setter is not respected by the getter.

@derrabus derrabus changed the base branch from 3.6.x to 3.7.x December 30, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants