I am trying to get Doctrine2 Entities, ordered by their ID which apparently is a String even though it contains only Numbers. So what I would like to do is
Try this one by with out changing the data type
select (entity1 * 1) as display_value, entity1 as return_value from Table_Name order by 1 asc;