mwhere()

mwhere($conditions, $override = false)

This defines MANUAL WHERE clauses to your model if override is true it cleanup all old wheres
@param String $conditions
@param Boolean $override
@return PhpBURN_Core

Params


$conditions
Your WHERE string for example: “id_user = 10”

$override (optional)
That will clean all or before where and mwhere setted and start again with this new one

Explanation


$user = new Users();

$user->mwhere("id_user = 10")
         ->find();

print_r($user->fetch()->toArray());

It will bring the user with id_user = 10.

NOTE: In this example we had used a PK but you can use ANYTHING you want in your WHERE and also we used FLUID INTERFACE but that’s optional.