[symfony-users] Re: Doctrine UNION function or similar solution

2009-04-20 Thread pixelmeister
Hi Valkerian, thanks for this solution. I will try to get it working this week . 2009/4/17 Valkerian valker...@gmail.com Hi there, it takes a bit of doing and there's a bunch of gotchas but here's how I did it: In the appropriate doctrine class I did this: public function

[symfony-users] Re: Doctrine UNION function or similar solution

2009-04-17 Thread Valkerian
Hi there, it takes a bit of doing and there's a bunch of gotchas but here's how I did it: In the appropriate doctrine class I did this: public function getByLastname($lastname) { $cnn = Doctrine_Manager::connection(); $quoted_lastname = $cnn-quote($lastname, 'string'); $people =

[symfony-users] Re: Doctrine UNION function or similar solution

2009-03-25 Thread David Herrmann
pixelmeister schrieb: Hi @all, i have to solve a problem with doctrine which I normally would do with the mysql union function. Perhaps someone has an Idea for me, how I can do this: I have a few tables whitch have the following setup: --

[symfony-users] Re: Doctrine UNION function or similar solution

2009-03-25 Thread pixelmeister
Hi David, thanks for your answer. I have been thinking about using one Table for all person_types the moment i klicked on the send button :-) Ug... this ist much work because the Project is allready in production und I have roundabout 120.000 peoples to put in one Table... But I think it is