I executed the following PHP code
class PublicController extends Controller{
public function testAction(){
$conditions = "nickname = :name: ";
$parameters = array(
"name" => "Robotina",
);
$robots = AdminMember::find(
array(
$conditions,
"bind" => $parameters
)
);
}
}
Here is my monitor SQL statement
[Wed, 17 Aug 16 14:24:38 +0000][INFO] SELECT IF(COUNT(*) > 0, 1, 0) FROM `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_NAME` = 'admin_member' AND `TABLE_SCHEMA` = DATABASE()
[Wed, 17 Aug 16 14:24:38 +0000][INFO] DESCRIBE `admin_member`
[Wed, 17 Aug 16 14:24:38 +0000][INFO] SELECT `admin_member`.`id`, `admin_member`.`nickname`, `admin_member`.`username`, `admin_member`.`password`, `admin_member`.`status`, `admin_member`.`created_at`, `admin_member`.`updated_at` FROM `admin_member` WHERE `admin_member`.`nickname` = :name
Why parameter binding does not take effect?
Thank you!