0
와 쿼리에 합류 .배수의는 다음 표를 살펴 보자 추진
$specialProduct = specialProductQuery::create()
->joinWithProduct(SpecialProduct.Product)
->joinWith(Product.ProductAttributes)
->find();
를 당신이 얻을 수있는 여기에서 :
기본적으로 생성 된 쿼리는
select s.id, p.id, pa.description
from special_product s
left join product p on s.key = p.key
left join product_attributes pa on p.id = pa.product_id