Doctrine ORM and packages

Permalink
Hi,

I just wanted to start a thread here to speak about the integration of Doctrine ORM into new packages (for custom objects).

I am still learning Doctrine, so I am by no means an expert at that, but it seems that Doctrine only accepts one directory to lookup for its Proxy classes, how would you use Proxys and ORM into a Package for custom objects?

 
Remo replied on at Permalink Reply
Remo
Not sure about proxies, but I think you can get a model into your package by using something like this:

/**
 * @Entity
 * @Table(name="Florian")
 */
class Florian 
{
   /**
    * @Id
    * @Column(type="integer")
    */
   public function save($flush = true)
    {
        $em = Loader::db()->getEntityManager();
        $em->persist($this);
        if ($flush) {