-1
我有教義和Zend 2我做這個劇本問題與查詢主義和Zend 2
$dql = $entityManager->createQuery('SELECT g FROM \Synchro\Entity\Geographicalarea g WHERE (g.namegeographicalarea = :namegeographicalarea) AND g.codegeo = :codegeo');
$dql->setParameters(array(
'namegeographicalarea' => '$this->GetSQLValueString($nameGeographicalArea,"text")',
'codegeo' => '$this->GetSQLValueString($nameGeographicalArea,"text")',
));
$checkgeographicalarea = $query->getResult();
我var_dumped
($checkgeographicalarea
)它是空的。我不知道爲什麼,因爲我有數據
我該如何解決?
問題的任何反饋,是否解決? – Hooli