Closed ianrodrigues closed 7 years ago
The SQL code that I run in pgAmin looks like this:
SELECT * FROM pcd.station WHERE ST_Intersects(ST_GeomFromText('MY_POLYGON_CODE', 'MY_SRID'), geom) AND origin IS NOT NULL
The same as the DQL, I think.
Hey guys,
I solved the problem, changing this:
$builder->expr()->andX('ST_Intersects(ST_GeomFromText(:geom, :srid), s.geom)')
by this:
$builder->expr()->eq('ST_Intersects(ST_GeomFromText(:geom, :srid), s.geom)', $builder->expr()->literal(true))
Was about to comment but glad you solved it yourself. 👍
Thx!
Hi guys,
I'm trying to execute the following code:
This is the result when I dump the DQL:
But I'm getting this error:
When I execute the SQL in pgAdmin, it works. Someone knows how to resolve this? Thx!