I want to paginate the records of two DB tables, Table1 and Table2 ,which are not related to each other and both the DB tables have different number of fields.Each query should have some conditions and are joined with some other tables also.
I want to paginate the records of both the table simultaneously so that i can show the data as follows-
Row1 = Table1's - name, address,...
Row2 = Table2's - tool_name, quantity,...
Row3 = Table1's - name, address,...
Row4 = Table2's - tool_name, quantity,...
.
.
.
If there will be no records for table1 then it will paginate table2 and vice versa. I want this to be done on symfony PHP framework.Can somebody help on forming the query for this type of pagination.