Skip to content

Instantly share code, notes, and snippets.

View jaspernbrouwer's full-sized avatar

Jasper N. Brouwer jaspernbrouwer

View GitHub Profile
@jaspernbrouwer
jaspernbrouwer / keybase.md
Created June 10, 2016 15:08
Keybase proof

Keybase proof

I hereby claim:

  • I am jaspernbrouwer on github.
  • I am jaspernbrouwer (https://keybase.io/jaspernbrouwer) on keybase.
  • I have a public key ASDdpl8LobuCrxQYpQGVm6_elI_UkwgD_doqFKtE9aKfPwo

To claim this, I am signing this object:

@jaspernbrouwer
jaspernbrouwer / one-to-many-to-one.php
Created December 8, 2012 14:34
Basic Doctrine 2 one-to-many/many-to-one association setup
<?php
/*
* This is a basic setup for Doctrine 2 one-to-many/many-to-one associations.
*
* There are many alternative approaches, additions and optimizations possible,
* but this example is only meant to help people getting started with the concept.
*/
namespace My\Entity;
@jaspernbrouwer
jaspernbrouwer / ValidateSchemaCommand.php
Created April 5, 2012 19:24
Symfony 2 console command proxy for Doctrine's ValidateSchemaCommand
<?php
// src/Nw/LibBundle/Command/ValidateSchemaCommand.php
namespace Nw\LibBundle\Command;
use Symfony\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;