I use phalcon with mongo db. Model is Collection. I want use find to get
SELECT * FROM Users WHERE Username LIKE '%TienNguyen%'
I see in mongo db have query
b.users.find(
{ Username: /TienNguyen/ }
)
But in collection of Phalcon. How do I code it.
I tried Users::find([['Username' => "/TienNguyen/"]]);
It is not working.
Please help me