Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从“reset_code_date”不为空的表“用户”中选择所有数据。我怎么能用推进器做到这一点?
现在我有这个:
$canceledusers = UserQuery::create()->filterByResetCodeDate()->find();
如您所见,现在我选择了所有 reset_code_date 为 NULL 的字段。但是我怎样才能选择它不为空的所有字段呢?
$canceledusers = UserQuery::create() ->filterByResetCodeDate(null, \Criteria::ISNOTNULL) ->find();
尝试这个:
$canceledusers = UserQuery::create()->where('reset_code_date is not null')->find();