1
neogabo
Criteria Class Obj
  • 2009/11/11 20:04

  • neogabo

  • Just popping in

  • Posts: 22

  • Since: 2009/11/9


hi, i'm trying to use the criteria class of XOOPS to make inner and left joins, but i need to do it with 4 tables. is it posible?

eg
I have 4 tables ( table1 , table2 , table3 , table4 ) and i need to create this sql:

SELECT * FROM tabla1 t1
INNER JOIN table2 t2 ON ( t1.id = t2.parent_id )
LEFT JOIN table3 t3 ON ( t2.id = t3.parent_id )
LEFT JOIN table4 t4 ON ( t3.id = t4.parent_id )
WHERE t4.id = '22'


how can i do that with the criteria class?

2
ghia
Re: Criteria Class Obj
  • 2009/11/13 1:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I don't think the criteria can do that. It is mere about limiting selections and ordering (WHERE, ORDER BY, GROUP BY).

3
neogabo
Re: Criteria Class Obj
  • 2009/11/16 15:20

  • neogabo

  • Just popping in

  • Posts: 22

  • Since: 2009/11/9


yep you're right. i read the entiry code xD

Login

Who's Online

405 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 405


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits