I don't know propel. But the proper SQL syntax for the expression would be:
$locations = LocationQuery::create()->where('location is not null')->find();
Any comparison to NULL
in SQL returns NULL
, which is treated as false. With the exception of is null
and is not null
.