Doctrine 未定义方法绑定值
Doctrine undefined method bindvalue
我对 Doctrine 非常陌生,正在做一个项目,当我调用这个函数时遇到问题:
public function authentification($login,$passe) {
$q = Doctrine_Query::create()
->select('count(user.id)')
->from("user")
->where("login = ?" . $login . "'")
->andWhere("passe = ?" . $passe . "'")
->bindValue(1, $login)
->bindValue(2, $passe);
return $q->count();
}
我收到此错误:
Call to undefined method Doctrine_Query::bindValue()
Doctrine_Query
中没有 bindValue
方法。像这样使用它:
$q = Doctrine_Query::create()
->select('count(user.id)')
->from("user")
->where("login = ?", $login)
->andWhere("passe = ?", passe);
您可以找到文档 here。
我对 Doctrine 非常陌生,正在做一个项目,当我调用这个函数时遇到问题:
public function authentification($login,$passe) {
$q = Doctrine_Query::create()
->select('count(user.id)')
->from("user")
->where("login = ?" . $login . "'")
->andWhere("passe = ?" . $passe . "'")
->bindValue(1, $login)
->bindValue(2, $passe);
return $q->count();
}
我收到此错误:
Call to undefined method Doctrine_Query::bindValue()
Doctrine_Query
中没有 bindValue
方法。像这样使用它:
$q = Doctrine_Query::create()
->select('count(user.id)')
->from("user")
->where("login = ?", $login)
->andWhere("passe = ?", passe);
您可以找到文档 here。