[symfony-users] Joining and Hydrating Propel Objects

2008-06-23 Thread Manoj Ghimire
would try to hydrate about 9 objects which I don't want. Please help... Manoj Ghimire --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us

[symfony-users] Re: Share Constants between Symfony1.0 Applications

2008-04-17 Thread Manoj Ghimire
t; <[EMAIL PROTECTED] project.com> wrote: > Did you try putting your shared constants in the project's app.yml ? > > François > > 2008/4/17, Manoj Ghimire <[EMAIL PROTECTED]>: > > > > > I am working on a project which has about 5 applications inside i

[symfony-users] Share Constants between Symfony1.0 Applications

2008-04-16 Thread Manoj Ghimire
I am working on a project which has about 5 applications inside it. There are several constants that I would prefer to share between the applications. Currently I am copy pasting the values from one application's app.yml file to other applications file. I know I can create a myProjectContants clas

[symfony-users] Re: Table joins with Propel

2008-04-16 Thread Manoj Ghimire
ests as $interest) > { > $blog_posts[$blog_post_ids[$interest->getBlogPostId()]]- > > >setInterestForUserId($interest,$user_id); > } > } > > Finally create the setInterestForUserId and getInterestForUserId > functions > > Another approach is to do the que

[symfony-users] Re: Table joins with Propel

2008-04-15 Thread Manoj Ghimire
ally I used a component for it, which for every table1 post queried the database for the given user_id to the table2. This increased the database queries used to build that page very much, so had to find this Hack out. Do I make some sense ?? Did I do it correct

[symfony-users] Re: Table joins with Propel

2008-04-15 Thread Manoj Ghimire
Thanx for the responses. I'll try our all the above suggested solutions. I saw its mentioned that the UGLY hacks work on mysql but I am using PostgreSQL, hope it will work there too. On Apr 14, 6:07 pm, Jill Elaine <[EMAIL PROTECTED]> wrote: > > > The quick and dirty one: > > > > $c = new Crite

[symfony-users] Re: Table joins with Propel

2008-04-14 Thread Manoj Ghimire
I had tried this out. It will generate the SQL SELECT table1.* FROM table1 LEFT JOIN table2 ON table1.id = table2.table1_id where table2.user_id = 27. In this case if table2 will not have an entry for the user_id then the row will not be selected. So in this case I want to take the advantage fro

[symfony-users] Table joins with Propel

2008-04-14 Thread Manoj Ghimire
I want to join two tables as given below in the SQL. Is there a way to do it using Propel or should I make a raw query using Creole for it ?? The trick I want to use is using multiple condition for the table join like SELECT table1.* FROM table1 LEFT JOIN table2 ON (table1.id = table2..table1_id

[symfony-users] Table joins with Propel

2008-04-14 Thread Manoj Ghimire
I want to join two tables as given below in the SQL. Is there a way to do it using Propel or should I make a raw query using Creole for it ?? The trick I want to use is using multiple condition for the table join like SELECT table1.* FROM table1 LEFT JOIN table2 ON (table1.id = table2..table1_id

[symfony-users] isXmlHttpRequest() Function

2008-04-13 Thread Manoj Ghimire
I see in the manual that there is a function isXmlHttpRequest() to find if the request is AJAX request or simple HTTP request. I guess the function must have been defined in the controller but I don't find any such function. I am using symfony 1.0, is the function added after that ?? --~--~---

[symfony-users] Re: input_date_tag

2008-04-02 Thread Manoj Ghimire
ear_end' => $year_end) > > By default you get +-5 years > > .: Fabian > > -Original Message- > From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] > > On Behalf Of Manoj Ghimire > Sent: Donnerstag, 3. April 2008 08:19 > To: symfony users &g

[symfony-users] input_date_tag

2008-04-02 Thread Manoj Ghimire
I tried the function input_date_tag to get the date input. I found that in case of year selection, there are some options avilable say from 2003 to 2010. I want to have this list of options configurable. Is there any way to do it ?? --~--~-~--~~~---~--~~ You receive