I have a raw query something like: I've converted this query to 'zf3 select' format. I'm using Zend\Db\Sql\Select and extending TableGateway. Here ...
I have a raw query something like: I've converted this query to 'zf3 select' format. I'm using Zend\Db\Sql\Select and extending TableGateway. Here ...
I'm missing the columns of a joined table. I have two tables like: t_q_filialen 1 --> n t_mandant I did my select statement in my model as follow ...
Here is my current code: What I want now is to add the id column but as DT_RowId instead of id. How do I accomplish this? The goal would be to have ...
I'm using zf 2.4 and for this example in Zend\db\sql. Do I need to worry about sql injection or do I still need to do quote() or escape anything if I ...
Can somebody explain me where the is called in Zend\Db\Adapter\Driver\Sqlsrv\Statement.php? Specifically, when I used this: It worked. But whe ...
In an application I implemented a Mapper to retrieve data from the database and objects from the ResultSet. In order to get all the data I have to JOI ...
There is gallery on my site, and every picture has own tag. All of the tags are sorting chaotically. I want to sort them by value of field "index" in ...
I am getting data from two tables using join and putting setIntegrityCheck(false) in my model. Now I need to call save() on that object. I know when y ...
I need to create the following query (this is just an example) using Zend Framework 1.12 as part of a larger query: Here's my attempt: However, ...
You can add "DISTINCT" with the distinct() method. But is there any way to remove it after it is added? ...
I want to have a join like this: But when I try to run it I get an error saying Unknown column '"email"' in 'on clause'. How can I get it to work? ...
I'm writing a complex search algorithm that does the searching in tiers. And for two of the tiers I need very weird order clauses which Zend's sql bui ...
I am using zend paginator for fetching records and listing the same. There are four joins and I have indexed all the respective fields and I am getti ...
I need to convert this sql query to Zend_Db_Select object How can I do the nested selects in the "join" ? any suggestion and help will be greatly a ...
I'm using Zend Framework 1.12.3. I need to create a query that hasnested WHEREs, such as Here's my attempt However, the outcome is instead of ...
I'm looking for the right zf2 syntax to select timestamps / timeranges from the database. I know how to make where statements. However it seems that g ...
I've been trying to follow the solution on this page for implementing a natural sort in Oracle (11g2) but I cannot get it to work with Zend_Db_Select ...
I am building a plugin for grid listing ( for my personal use of course ). Now I integrated ZF2 Paginator as in link http://framework.zend.com/manual/ ...
I want my query like this: But i can't find the way to get parantheses in my query,there are mutiple condition and loop will be there to make where ...
Hy, I have some problem vith Zend_Db_Select. I have 2 variable : category and city. These 2 variables may have a value or they may be unset. So I veri ...