企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### findBy **按字段值查找一条记录** **参数** $field: 字符串,对应数据表中的字段名。 $value: 字符串,对应的值。 ~~~ public function findBy($field, $value) { return $this->find ( array ($field => $value ) ); } ~~~