Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

For what I can understand you probably want something like this

Symfony2 Select one column in doctrineSymfony2 Select one column in doctrine

but I can not really understand what exact data structure you want to get, and to which query in your controller you are referring to.

Is theres a way to get only those data i need not all data from all other tables combined by keys??

also do not understand because these queries will return you object with properties not arrays with keys. Moreover by default doctrine won't fetch all data only single row, and only when you access method will ask db for more data.

For what I can understand you probably want something like this

Symfony2 Select one column in doctrine

but I can not really understand what exact data structure you want to get, and to which query in your controller you are referring to.

Is theres a way to get only those data i need not all data from all other tables combined by keys??

also do not understand because these queries will return you object with properties not arrays with keys. Moreover by default doctrine won't fetch all data only single row, and only when you access method will ask db for more data.

For what I can understand you probably want something like this

Symfony2 Select one column in doctrine

but I can not really understand what exact data structure you want to get, and to which query in your controller you are referring to.

Is theres a way to get only those data i need not all data from all other tables combined by keys??

also do not understand because these queries will return you object with properties not arrays with keys. Moreover by default doctrine won't fetch all data only single row, and only when you access method will ask db for more data.

Source Link
LPodolski
  • 2.9k
  • 4
  • 24
  • 25

For what I can understand you probably want something like this

Symfony2 Select one column in doctrine

but I can not really understand what exact data structure you want to get, and to which query in your controller you are referring to.

Is theres a way to get only those data i need not all data from all other tables combined by keys??

also do not understand because these queries will return you object with properties not arrays with keys. Moreover by default doctrine won't fetch all data only single row, and only when you access method will ask db for more data.