Could anyone tell me how to use 'findby' with input as an array of objects?? i got code like this:
public function getIpOnline($acc)
{
try {
$rs = $this->em
->getRepository($this->target)
->findBy(array('login' => $acc))
;
} catch (Exception $e) {
echo "ERROR ".$this->target." DAO: ".$e;
}
var_dump($rs);exit();
return $rs;
}
and i got error :
Catchable fatal error: Object of class Character could not be converted to string in /var/www/xxx.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 67
Thanks in advance.