Skip to content

Prevent vendor class name overlap - #1681

Closed
pkly wants to merge 7 commits into
symfony:1.xfrom
pkly:main
Closed

pkly wants to merge 7 commits into
symfony:1.xfrom
pkly:main

Conversation

@pkly

@pkly pkly commented Apr 7, 2025 •

Copy link
Copy Markdown

Fixes #1566

I've pasted this over the currently installed version in the project in which I had these issues, seems to work fine. Would be good if it could be re-checked and generally looked over, since I'm not 100% sure about it, but this is the place which causes the issue mentioned.

It should prevent situations where a known, working class name is skipped over and a vendor class is used instead, as there is no instance in which modifying vendor classes is required.

Actually this also seems to not work when it comes to classes with relations, so the target entity class (one we're adding relation to) may still be pulled from the vendor.

@smnandre

smnandre commented Apr 26, 2025 •

Copy link
Copy Markdown
Member

@pkly

pkly commented Jul 9, 2025

Copy link
Copy Markdown
Author

Any chance one of the maintainers could look at this? It's horribly annoying.

@pkly

pkly commented Nov 25, 2025

Copy link
Copy Markdown
Author

@javiereguiluz sorry to bother you, but is there a chance for this to get merged? I've been using this patched in for... well months really without problems and it solves few issues

@GromNaN GromNaN added the Bug Bug Fix label Jan 9, 2026
GromNaN
GromNaN previously approved these changes Jul 9, 2026

@GromNaN GromNaN left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for tackling this! The logic is sound: keeping the app-namespaced candidate as a fallback and preferring it when it exists is exactly what avoids the silent vendor-file write reported in #1566. I reproduced the original issue and confirmed the fix behaves as expected.

@GromNaN
GromNaN force-pushed the main branch 3 times, most recently from a058b83 to 5b6eaf2 Compare July 9, 2026 17:31
@GromNaN
GromNaN requested review from GromNaN and removed request for GromNaN July 9, 2026 17:31
@GromNaN
GromNaN dismissed their stale review July 9, 2026 17:32

I'll open an alternative PR that fixes also core classes conflicts.

@pkly

pkly commented Jul 12, 2026 •

Copy link
Copy Markdown
Author

Yeah, feel free to open up an alternate as this PR is extremely stale. I'd appreciate some sort of mention though.

Once it's ready, I'll close this.

@GromNaN

GromNaN commented Sep 22, 2026

Copy link
Copy Markdown
Member

This issue should be resolved by #1838

@GromNaN GromNaN closed this Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Bug Fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[make:entity] Maker modifies vendor files if FQCN covers up local alias

4 participants