Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Automatic table aliases do not enter the postgres limit (63 bytes) #357

Open
1 task done
roquie opened this issue Aug 11, 2022 · 0 comments
Open
1 task done
Assignees
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug

Comments

@roquie
Copy link

roquie commented Aug 11, 2022

No duplicates 馃ゲ.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

SQLSTATE[42712]: Duplicate alias: 7 ERROR:  table name \"longtablename1_longtablename2_longtablename3_thispartwastruncatedbypostgres\" specified more than once

Possible solution 1:

I can use table aliases when I select records from repository with loadand with methods but I can't set up an alias for orderBy/Where clause for an entity attributes.

Possible solution 2 (correct):

ORM can use non-human-friendly aliases like t1, t2, t3 ... etc

Version

ORM 2.2.0
PHP 8.1
@roquie roquie added status:to be verified Needs to be reproduced and validated. type:bug Bug labels Aug 11, 2022
@roxblnfk roxblnfk added status:ready for adoption Feel free to implement this issue. and removed status:to be verified Needs to be reproduced and validated. labels Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug
Projects
Status: Todo
Development

No branches or pull requests

2 participants