Skip to content

Instantly share code, notes, and snippets.

View Puzo's full-sized avatar

Mario Ropič Puzo

View GitHub Profile
@Puzo
Puzo / Categories.php
Created November 4, 2011 08:05
Doctrine inserting problem - Many To One relation - Example
<?php
namespace models;
use InvalidArgumentException;
/**
* @Entity
* @Table(name="categories")
*/
class Categories {
@Puzo
Puzo / Workers.php
Created October 30, 2011 18:30
[doctrine-user] Auto create date - annoation - Codeigniter 2 and Doctrine 2
<?php
namespace models;
/**
* @Entity
* @Table(name="workers")
* @HasLifecycleCallback
*/
class Workers {
/**