orm icon indicating copy to clipboard operation
orm copied to clipboard

document how to work with generated columns

Open dbu opened this issue 10 months ago • 4 comments

while all relevant attributes are in the reference, it is not obvious how to work with generated columns.

this is an attempt to explain how to work with them with some examples.

this would answer https://github.com/doctrine/orm/discussions/10706

dbu avatar Feb 12 '25 09:02 dbu

I think you could retarget to 2.x

i was wondering. happy to do that. would that be the 2.21.x branch? i do not see a 2.x branch.

dbu avatar Feb 15 '25 10:02 dbu

does the CI provide a preview somewhere so i can check if anything is rendered incorrectly?

dbu avatar Feb 15 '25 10:02 dbu

2.20.x, and there is no preview, but you can generate the html locally by doing what the ci does

greg0ire avatar Feb 15 '25 11:02 greg0ire

2.20.x

i changed the branch and target of this merge request.

dbu avatar Feb 17 '25 14:02 dbu

Hey @dbu anything holding this up ? Seems like a pretty straight forward changeset to enhance the documentation..

Happy I found this thread, I'm sure other people would love to see the documentation updated.

zwalden avatar May 01 '25 19:05 zwalden

afaik it would be ready to merge.

@greg0ire is there anything you need me to adjust or is it fine like this?

dbu avatar May 05 '25 07:05 dbu

Looks fine to me, thanks!

greg0ire avatar May 05 '25 08:05 greg0ire

I guess, some examples are missing

Screenshot 2025-05-26 at 18 32 13

bernard-ng avatar May 26 '25 16:05 bernard-ng

Ping @dbu looks like literalinclude did not work in this case for some reason

greg0ire avatar May 26 '25 17:05 greg0ire

i suspect the problem is the missing blank line: https://github.com/doctrine/orm/pull/11951

is there a way to preview the render before merging?

dbu avatar May 27 '25 07:05 dbu

Yes, you can run something similar to what's in the GitHub workflow locally. The css will be off but you will be able to validate this.

greg0ire avatar May 27 '25 10:05 greg0ire