How can I join multiple tables in symfony2?

Errorhere

I am working on a project. I am using symfony2 with XAMPP with PHP version of 5.5.19. I have three tables that have relationship ..

Here are the tables :

table_name : transaction_tbl 
- transaction_id
-filename
-filepath
-sender
-doctype_id

table_name : doctype_tbl
-doctype_id
- doctype
-name
-description

table_name : transaction_details

- details_id
-ref_numbers
-amount
-transaction_id

what I want to do is to join the three tables so I can get the doctype with its details. Meaning need to join also the transaction and the transaction details. I don't know how to do it. Can somebody help ?

UPDATE

I forgot to say that I am using doctrine query builder.

kailash sharma
$qb->select('DISTINCT m')
->from('MessageBundle:AssignmentUser', 'au')
->innerJoin('au.assignment', 'a', 'WITH', 'a.status = (:assigned)')
->innerJoin('au.user', 'u')
->innerJoin('a.message', 'm')
->where('u.id = (:user_id)')
->setParameter('assigned', 'assigned')
->setParameter('user_id', $yourSpecificUserId)
->orderBy("m.createdAt", "desc");

See Symfony2 / Doctrine multiple joins returns error for details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I throw a 403 exception in Symfony2?

From Dev

How can i show the first published demands in Symfony2 ?

From Dev

How can I inject doctrine into Symfony2 service

From Dev

How can I get the action name in a Symfony2 controller?

From Dev

How can I dynamically set a parameter in Symfony2?

From Dev

How can I create complex reports with PHP / Symfony2?

From Dev

How can I join 2 tables and match the null values

From Dev

How to join multiple tables

From Dev

Can I Inner Join 2 tables based on multiple values for a column

From Dev

How do I inner join multiple tables?

From Dev

Join 3 tables in Symfony2

From Dev

How do I join tables on multiple conditions

From Dev

In Symfony2 how can I append a date to the assetic filenames

From Dev

How can I catch errors and exceptions in Symfony2/Silex?

From Dev

How can I join multiple tables in symfony2?

From Dev

How can I join 3 tables in SQL

From Dev

How can I do to reload a symfony2 server with gulp?

From Dev

How can I join two tables on multiple columns in CakePHP 3?

From Dev

How to join multiple tables in symfony

From Dev

How can I write a SQL query to do a full text search from multiple tables and then join the results comming from different tables?

From Dev

How can I load templates from subdirectories in Symfony2?

From Dev

How can I use this Linq Query using it with a multiple parameter by Join tables

From Dev

How can I join 2 tables and match the null values

From Dev

How can I call multiple pages from a single method of DefaultController.php in Symfony2?

From Dev

How do I join multiple tables in SQL Server?

From Dev

How can I join 3 tables in SQL

From Dev

How can I join denormalized tables in MySQL?

From Dev

How can I connect multiple mySQL tables with LEFT JOIN?

From Dev

How can I join two tables with REALM

Related Related

  1. 1

    How can I throw a 403 exception in Symfony2?

  2. 2

    How can i show the first published demands in Symfony2 ?

  3. 3

    How can I inject doctrine into Symfony2 service

  4. 4

    How can I get the action name in a Symfony2 controller?

  5. 5

    How can I dynamically set a parameter in Symfony2?

  6. 6

    How can I create complex reports with PHP / Symfony2?

  7. 7

    How can I join 2 tables and match the null values

  8. 8

    How to join multiple tables

  9. 9

    Can I Inner Join 2 tables based on multiple values for a column

  10. 10

    How do I inner join multiple tables?

  11. 11

    Join 3 tables in Symfony2

  12. 12

    How do I join tables on multiple conditions

  13. 13

    In Symfony2 how can I append a date to the assetic filenames

  14. 14

    How can I catch errors and exceptions in Symfony2/Silex?

  15. 15

    How can I join multiple tables in symfony2?

  16. 16

    How can I join 3 tables in SQL

  17. 17

    How can I do to reload a symfony2 server with gulp?

  18. 18

    How can I join two tables on multiple columns in CakePHP 3?

  19. 19

    How to join multiple tables in symfony

  20. 20

    How can I write a SQL query to do a full text search from multiple tables and then join the results comming from different tables?

  21. 21

    How can I load templates from subdirectories in Symfony2?

  22. 22

    How can I use this Linq Query using it with a multiple parameter by Join tables

  23. 23

    How can I join 2 tables and match the null values

  24. 24

    How can I call multiple pages from a single method of DefaultController.php in Symfony2?

  25. 25

    How do I join multiple tables in SQL Server?

  26. 26

    How can I join 3 tables in SQL

  27. 27

    How can I join denormalized tables in MySQL?

  28. 28

    How can I connect multiple mySQL tables with LEFT JOIN?

  29. 29

    How can I join two tables with REALM

HotTag

Archive