Skip to content

Instantly share code, notes, and snippets.

View cobbweb's full-sized avatar

Andrew Bucknall cobbweb

  • QLD, Australia
  • 11:55 (UTC +10:00)
View GitHub Profile
@cobbweb
cobbweb / example.conf
Created July 29, 2011 04:19
Nginx and PHP-FPM
server {
listen 8080;
server_name example.dev www.example.dev;
location / {
root /Users/Cobby/Sites/Example;
if ($host = 'www.example.dev' ) {
rewrite ^/(.*)$ http://example.dev:8080/$1 permanent;
}
@cobbweb
cobbweb / MoveEmbeddedDocuments.php
Created April 20, 2011 05:13
How to move embedded documents between parent documents in Doctrine ODM
<?php
namespace Doctrine\ODM\MongoDB\Tests\Functional;
use Doctrine\Common\Collections\ArrayCollection,
Documents\Functional\EmbeddedTestLevel0,
Documents\Functional\EmbeddedTestLevel1,
Documents\Functional\EmbeddedTestLevel2;
class MoveEmbeddedDocuments extends \Doctrine\ODM\MongoDB\Tests\BaseTest
@cobbweb
cobbweb / MODM140Test.php
Created April 15, 2011 00:51
Testing nested embedded documents in Doctrine ODM (BETA3)
<?php
namespace Doctrine\ODM\MongoDB\Tests\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection,
Documents\Functional\EmbeddedTestLevel0,
Documents\Functional\EmbeddedTestLevel1,
Documents\Functional\EmbeddedTestLevel2;
class MODM140Test extends \Doctrine\ODM\MongoDB\Tests\BaseTest