$phql = "INSERT INTO Robots (name, type, year) VALUES (:name:, :type:, :year:)";
$status = $app->modelsManager->executeQuery(
$phql,
[
"name" => $robot->name,
"type" => $robot->type,
"year" => $robot->year,
]
);
感觉这种示例好low呀,有没有简单实用一点的CURD操作???
插入记录:
分页查询:
查询:
就这么简单 :)