S
S
Sergey2014-02-20 14:42:09
Yii
Sergey, 2014-02-20 14:42:09

Is it possible in Yii to make such a request via updateAll()?

Is it possible in Yii to make a query like

UPDATE
   `table1` 
LEFT JOIN
   `table2` 
ON  
  table1.id = table2.product_id
SET 
   table1.value  = table2.value

via updateAll() ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2014-02-20
@mr_Verman

updateAll doesn't support connections, do it via DAO and don't bother

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question