<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 07:16:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ServerGrove Blog: Logging MongoDB queries using Symfony 2 and Doctrine ODM]]></title>
      <guid>http://www.phpdeveloper.org/news/15230</guid>
      <link>http://www.phpdeveloper.org/news/15230</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's <a href="http://blog.servergrove.com/2010/10/05/logging-mongodb-queries-using-symfony-2-and-doctrine-odm/">a quick new post</a> showing a method you can use to log the queries to your MongoDB database in your Symfony2-based application.
</p>
<blockquote>
Symfony 2 comes with native support to connect to MongoDB using the DoctrineMongoDBBundle. Getting started is quite simple and there is not much that needs to be configured, but the manual does not say how to enable query logging although it is already possible with Symfony PR3. Query logging allows you to debug queries sent to the DB server by writing them in a log file. It is very useful for cases when you issue a query and you are not getting the results you expected. 
</blockquote>
<p>
The key is to add a "logger_class" value into your Symfony configuration file pointing to the "DoctrineMongoDBLogger" tool. The queries will then show up in your normal log files. They include a sample line along with a brief explanation of the values inside.
</p>]]></description>
      <pubDate>Tue, 05 Oct 2010 10:56:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove.com: MongoDB with PHP and symfony]]></title>
      <guid>http://www.phpdeveloper.org/news/14444</guid>
      <link>http://www.phpdeveloper.org/news/14444</link>
      <description><![CDATA[<p>
In a recent post to the ServerGrove.com blog today there's a look at <a href="http://blog.servergrove.com/2010/04/28/mongodb-with-php-and-symfony/">using the MongoDB with symfony</a> to create a simple application with a NoSQL-based backend.
</p>
<blockquote>
Part of our business is to develop internal applications and  support customers, so we dedicate a good amount of time to research, test and learn new technologies. We have been following this whole movement and decided to give MongoDB a try. What has really taken our attention regarding MongoDB is its simplicity, yet how powerful it is. It lowers the barrier to develop DB-driven applications even more.
</blockquote>
<p>
They start by explaining how to use MongoDB together with PHP and get both the server and client sides up and running. From there they introduce <a href="http://github.com/jwage/odm">ODM</a>, a object document mapper from <i>Jon Wage</i> (of the <a href="http://doctrine-project.org">Doctrine</a> project) that lets you easily interact with MongoDB instances. A code sample it provided to show how simple the tool is to use and how it can integrate with <a href="http://symfony-project.org">symfony</a> as an entity.
</p>]]></description>
      <pubDate>Fri, 30 Apr 2010 13:10:08 -0500</pubDate>
    </item>
  </channel>
</rss>
