Ahoj,
jak zapsat tento dotaz v nette DB
SELECT * FROM `foo` WHERE (xxx = 5 and yyy = 1) or xxx = 2
Děkuji
// $connection instance of \Nette\Database\Connection $connection->query(...);
Mozno su tam aj cesty (skor nie ako ano) ako to urobit pomocou fluent interfacu.
$selection->where("(xxx = ? AND yyy = ?) OR xxx = ?", 1,2,3);