like to know how do i use select not in as a subquery in phalcon
for example i know i can use following to do the notIn with a array values.
return User::query() ->where(" gender!=:gender: ", array('gender' => $gender)) ->andWhere(" verify=1 ") ->notInWhere('user_id', "SELECT user_id FROM user_bannned WHERE user_id=:user_id:" ) ->order(" last_visit DESC ") ->limit($limit) ->execute();
Problem is
"SELECT user_id FROM user_bannned WHERE user_id=:user_id:"
how do i do this subquery with model query manager ?
ANY ideas ? or workarounds ?