Hi,
I have this propel criteria, and then I try to print the equivalent MySQL clause:
$c = new Criteria();
$c->add(self::USER_ID, 18793);
$result = self::doSelect($c);
echo $c->toString();
But tt print this:
Criteria: SQL (may not be complete): SELECT FROM
prenotazione
WHERE prenotazione.USER_ID=:p1 Params: prenotazione.USER_ID => 18793
I expected something like this (that give me 1 result from my database, The propel code doesn't retrieve anything...:(. )
SELECT *
FROM `prenotazione`
WHERE `user_id` =18793
Any explanation?
Regards
Javi