Hi! I'm writing a cms as a one man hobby project. I started it on phalcon 1.2,, tahn had a half year pause. Now i tyr to revive my project and updated to phalcon 1.3. Earlier this code worked fine:
$trans = ArticlesTranslation::findFirst(["slug = :slug: and language = :language: and language in (select lang_code from Languages where is_active = 1)", "bind" => ["slug" => $slug, ":language:" => $language], "order" => "version desc"]);
But since 1.3 the condition is parsed as phql which doesn't support subquery, so this fails. Is there any good workaround?