Hi, i want to get some data from the database, my sql code is :
SELECT products. FROM
products
WHERE id IN (SELECT product_lang.product_id FROMproduct_lang
WHERE name LIKE "%{$val}%") UNION SELECT products. FROMproducts
WHERE product_id = {$val}
is there anyway that I can do this on phalcon returning a models/Products instance ?