doctrine-1.2

Doctrine ORM - Prefixing Tables

Hi, I'm using Doctrine 1.2, and would like to know how I can achieve mysql table prefixes with it. So for instance I would like for our system to be deployed twice on the same database, the first the tables can be prefixed with "one_" and the second can be prefixed with "two_". Anyone got any idea how to accomplish this? I would imagi...

Doctrine many-to-many relations with extra field

Hi! I want to join 3 table, Szamla, Termek and Vasarlo. This is my schema: options: collate: utf8_unicode_ci charset: utf8 Szamla: actAs: [Timestampable] columns: datum: type: timestamp notnull: true total: type: float notnull: true fizetesi_datum: type: date fizetesi_ora: ...

Migrating from MySQL > PostgreSQL (PHP/Doctrine)

I have a system with 25 tables. I ran a utility to basically get all my data to a postgres table, but now I'm getting a lot of errors in the front end of my website after I switched the db driver. How can I go about completely migrating my current PHP/Doctrine MySQL system to work with Postgres? ...

Bundling Doctrine PHP commonly used models

Doctrine PHP documentation suggests bundling commonly used classes to single files. Does this refer to Doctrine model files? If so , do you have any examples of how this would be done and how you would then load those models? We are using lazy loading so I am curious about how the lazy loader would be able to find out where the various ...

Doctrine Self Referencing is not working in Symfony 1.4 when updating or deleting

Hi there! I'm trying to build a model for content pages on my site, and i gave it a self reference named 'Related Page'. Now if i build my models and try to create a new page in the admin generator everything works fine. If i give the page a related page (or more) it works fine too, but if i go to the other page and try to edit the refe...

What is the correct way to retrieve information from two tables using doctrine ORM.

I am trying to perform a simple join on two tables and am having trouble finding the right syntax to use - I know i am missing something simple. From the 'users' table i need the id (working fine) and from the 'meta' table i need the last_name (not working) $q = Doctrine_Query::create() ->from('Users u') ->leftJoin('u.Meta m'); $users...