mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Select assocation id using IDENTITY function inline #5622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rpander93 on GitHub (Jul 26, 2017).
Originally assigned to: @Ocramius on GitHub.
Hi,
I'm wondering why it isnt possible to fetch a foreign key inline with the rest of the results when hydrating to an array. Instead, it returns a mixed results as found here in the docs. Would it not be possible to include the desired field along with the rest of the results rather than the current situation? Specifically when hydrating to an array, this shouldn't be a problem I'd think.
@Ocramius commented on GitHub (Aug 18, 2017):
@rpander93 as soon as you have a scalar value added to object values, the result format will change.
If you want, you can try expanding on the expected results, but I don't think this is worth inspecting/improving, as changing the behavior would be a BC break.
Closing as
won't fix