Phalcon报错Can't obtain model's source from models list:xxx
来源:互联网 发布:投影幕布 白墙 知乎 编辑:程序博客网 时间:2024/06/07 18:50
Phalcon使用PHQL操作时报错
Can't obtain model's source from models list: 'Robots', when preparing: select * from robots where id=:id:
代码如下
$res=$this->modelsManager->executeQuery("select * from robots where id=:id:",[ 'id'=>3 ]);var_dump($res->toArray());
解决方法是在查询字段前加上表名
$res=$this->modelsManager->executeQuery("select * from robots where robots.id=:id:",[ 'id'=>3 ]);var_dump($res->toArray());
阅读全文
0 0
- Phalcon报错Can't obtain model's source from models list:xxx
- Can't find model for source store
- Aspect报错: can't find referenced pointcut xxx
- mysql启动报错Can't read from messagefile处理
- linux set_rtc_mmss: can’t update from XX to XXX
- 远程连接CentOS的MySQL报错:Can't connect to MySQL server on 'XXX' (13)
- Spring AspectJ报错:error at ::0 can't find referenced pointcut XXX
- mysql报错Error Code: 1022. Can't write; duplicate key in table `xxx`
- Mysql 报错:ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.xxx.xxx' (111)
- MySQL报错“ you can't specify the target table for ‘update’ in from clause”
- MySql报错: You can't specify target table 'table name' for update in FROM clause
- SQLiteException: Can't upgrade read-only database from version 0 to 1报错!
- mac osx terminal 报错:nohup: can't detach from console: Inappropriate ioctl for device
- MySQL 修改报错 You can't specify target table 'tb_trade' for update in FROM clause
- mysql报错You can't specify target table 'b' for update in FROM clause
- 使用Spring提供的BeanUtils.copyProperties()方法报错:Could not copy property 'xxx' from source to target
- shutdown -s -t XXX
- 【Spring实战】—— 12 AspectJ报错:error at ::0 can't find referenced pointcut XXX
- Codeforces 877 D Olya and Energy Drinks
- 深入学习c#(2)
- java 中 new 关键字
- 关于android的一个全局异常捕获类
- java 异常捕捉 ( try catch finally )
- Phalcon报错Can't obtain model's source from models list:xxx
- Java 的发展史
- Docker容器介绍资料
- SylixOS USB Gadget层介绍
- 分析 ddp ccorr 模块
- react_basic(7)
- PHP多进程抓取百度搜索结果
- Okhttp简单封装加网络拦截器
- iframe的简单使用