[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 = $cnn->fetchAss

[symfony-users] Admin linking.

2009-04-22 Thread Valkerian
Morning all. I'm going to throw out a really simple question here about the backend admin. If I want to prefill a field when creating a new item, how do I do that via a link? Say I have a contact form and I want to link to it such that the first name will be filled with "Joe". http://localhost/bac