Open mahdiazarm opened 3 years ago
same issue.
package looks like useless
There would be problem somewhere else:
__call()
method which refers to current query builder; by a dialect (MySQL/SQLite) it chooses on of Translators and for both SQL builder is the same (ClanCats\Hydrahon\Query\Sql
)Sql
), the very first method is table()
, so the problem is not likely this package (as I'm using it under MySQL without - almost - problems), but maybe a setup/config, for example if the Builder has selected right dialect?$grammarKey
goes into constructor of Builder (also if it is called)__call()
method of the Builder to see what class is in $queryBuilder
propertyAnd for the final: yes, if there is wrong class inside, it could be the library's bug. Have you tried some debugging before?
https://github.com/envms/fluentpdo - is more useful SQL builder.
It's opinion based - when I was looking for one, this (hydrahon) was best for me as it has very nice "where" (and the other) API; for me much better than for example one you mentioned; I don't like to write sql fragments in where like they'we or "manual" joins and so on. In this case (and for me) Hydrahon wins.
Also keep in mind that dudes around here and there put a lot of time and mind effort to create some library with as good API as they can, so saying "package is useless" is quite rude. From the other side, you can say, hey, I like the API of that library, looks good.
Hi I'm not sure if I'm doing something wrong or not but I get this error In Phpstorm and PHP error log. Also, I searched the Builder.php file and found no reference to the table function inside it. Please tell me what to do Thanks.