Lets say i have a view table. And i want to get data from it to an entity. Can i (and how) create entity class to do that. (no save operation needed). I just want to display
There is nothing special in querying a view — it's just a virtual table. Set the table of your entity this way and enjoy:
/** * @ORM\Entity * @ORM\Table(name="your_view_table") */ class YourEntity { // ... }