Hi,
I try to translate this query into Criteria (with Propel), but without success.
Can you help me please ?
SELECT DISTINCT (email)
FROM user, travail
WHERE travail.id_user = user.id_user
AND id_site = "1"
AND `droits` = "1"
This my Criteria query :
$c = new Criteria();
$c->add(self::DROITS, 1, Criteria::EQUAL);
$c->add(TravailPeer::ID_SITE, 1, CRITERIA::EQUAL);
$c->setDistinct(self::EMAIL);