我们如何运行相当于"select * from info where Name='$name' && Password='$pass'"查询的查询;在symfony框架中?



符号框架中存在一些问题,请解决任何问题并帮助我。

Error is=
Catchable Fatal Error: Argument 2 passed to SymfonyComponentRoutingRoute::__construct() must be of the type array, string given, called in

Symfony是一个框架,Doctrine经常与之联系在一起。由于您有兴趣按名称和密码从信息表中选择数据库记录,因此需要创建一个条令实体类和一个存储库:

https://symfonycasts.com/screencast/symfony-doctrine/create-entity

然后您将能够使用过滤器选择记录。

你的第二个问题是关于路由。您需要正确设置您的应用程序。

相关内容

最新更新