문제

I'm trying to select the all the data from a table "users" where the "reset_code_date" is not null. How can I do this with propel?

Now I have this:

$canceledusers = UserQuery::create()->filterByResetCodeDate()->find();

As you can see, now I select all the fields where the reset_code_date IS NULL. But how can I select all the fields where it is not null?

도움이 되었습니까?

해결책

Try this:

$canceledusers = UserQuery::create()->where('reset_code_date is not null')->find();

다른 팁

$canceledusers = UserQuery::create()
    ->filterByResetCodeDate(null, \Criteria::ISNOTNULL)
    ->find();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top