SQL Archives - thehazels SQL Archives - thehazelsthehazels

Tag Archives for SQL

Doctrine query builder in Symfony 2

I’ve found many different opinions on the best way to use Doctrine query builder in Symfony 2. I needed to return a query joining four tables. I hit many errors before finding a working solution. The requirement was to use … Continue reading

26. March 2014 by Antonia Whitaker
Categories: Symfony | Tags: | Leave a comment

Queries

for PHP error reporting, set WP_DEBUG to true in wp-config.php new WP_Query : fetch posts and pages, e.g. while ($query->have_posts()) {   $query->the_post(); echo the_title() . the_content(); } $query->result: whole thing $query->request: sql query

23. October 2013 by Antonia Whitaker
Categories: Wordpress | Tags: | Leave a comment