mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Ordering by array column #6070
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 @MassiveHiggsField on GitHub (Sep 20, 2018).
I couldn't find any documentation on this. How are serialized array columns sorted? Is it just a normal text order on the serialized string? Is it the first value in the array which determines the order?
To clarify, i don't mean how are the values in the array sorted, but what happens if i add an orderBy clause on an array column.
@Ocramius commented on GitHub (Sep 20, 2018):
By their serialized DB state, which is a PHP serialized string, hence unreliable.
@MassiveHiggsField commented on GitHub (Sep 20, 2018):
Alright thanks for the info.