I got a one to one and a one to many relationship and I use with to pull the data which is fine but.... One of the relations is on well over 10000 rows, and SQL server complains that it can only handle 2100 parameters. That error made me realise that the With eloquent option creates a where clause that translates to this : where (id) in (foreign table ids) which exceeds 2100.
So does with only produce this kind of where and therefore I need to use the query builder as opposed to eloquent? If that is a case that is fine as I am quite fluent in SQL but just was wondering if there is a way to do it with eloquent.
@JarekTkaczyk the end result of the query is around 150 odd rows but to get all the data I want I need to join a couple tables together. The rows linked between the tables are quite a few. An inner join would work a where in would be not so great.
Thanks for the reply though at least I will not be hunting down a way to do this that does not exist.
just read up on those two and they are useful but I think in the end it is a bit more hassle than just query builder which is what I used. QB is a lot like SQL which I enjoy anyway!