[symfony-users] Re: Wrong Table Alias (Doctrine Admin Generator)

2009-11-16 Thread jukea
+1 !! I also have problems with count queries not respecting the alias I set for a table in join statements On Nov 11, 7:52 am, mintao wrote: > Hi, > > Not sure if this or the doctrine newsgroup is the right place to post > this question/bug. > > It's about the doctrine admin generator for the

[symfony-users] Dependency injection component & conditionnal dependencies

2009-10-23 Thread jukea
Hi, I just went through the whole DI documentation, but I'm still left with 2 question : I want to build an environment where plugins will define services. I'm planning have each plugin specify their own service definitions, in XML too, which I think would be the way to go about it. The 1st que

[symfony-users] Re: Doctrine problem trying to add null relation object

2009-05-27 Thread jukea
I had the same problem here. Jon told me to do $object->related_id = null; $object->save(); and now it seems to work good luck On May 21, 5:32 am, wissl wrote: > Not sure if you registered it before, so I ask you to get a > confirmation: Did you try to add "notnull: false" to your schema > de

[symfony-users] Re: Plugins inside of a plugin

2009-03-05 Thread jukea
Haha ! I just found what you commited 4 hours ago :) On Mar 5, 8:47 pm, jukea wrote: > I'm about to start building the same thing here, and since this plugin > seems to be publicly available, I'd be appreciated if you could give > us a taste of what's coming. What timef

[symfony-users] Re: Plugins inside of a plugin

2009-03-05 Thread jukea
Mar 5, 8:07 pm, Jonathan Wage wrote: > Yes. > > - Jon > > > > On Thu, Mar 5, 2009 at 7:02 PM, jukea wrote: > > > Jonathan, > > > can you describe a bit that Sympal plugin that I'm curious about  ? Is > > it like some kind of framework implementing m

[symfony-users] Re: I18n in forms messages

2009-03-05 Thread jukea
oops, typo error . What I meant was : maybe you could try this : __('Blbalba %parameter%',__($columnName)); instead of this : __('Blabla %parameter%', $columnName); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: I18n in forms messages

2009-03-05 Thread jukea
just an idea here .. maybe you could try this : __('Blbalba %parameter%',__($columnName)); instead of this : __('Blabla $parameter%', %columnName); On Mar 5, 6:04 pm, boozee wrote: > anyone? please ? > > On Mar 5, 2:44 am, boozee wrote: > > > Hello, > > > I have made a section in my messa

[symfony-users] Re: Plugins inside of a plugin

2009-03-05 Thread jukea
Jonathan, can you describe a bit that Sympal plugin that I'm curious about ? Is it like some kind of framework implementing menus/permissions/etc... like drupal does ? One can hope .. :) On Mar 5, 3:03 pm, Jonathan Wage wrote: > I think I am fine with that. > >     $sympalPluginPath = dirn

[symfony-users] Re: Starting point to make a module to create/update multiple objects at a time?

2009-03-05 Thread jukea
I don't know access, but are you talking about inline editing ? Like editing you data the way excel would ? If so, I don't think it's done out of the box, see : http://symfony.uservoice.com/pages/symfony/suggestions/109418-add-support-for-inline-editing-in-admin-gen Basically, you could start wi

[symfony-users] Re: how to get minimum/maximum longitude and longitude

2009-03-03 Thread jukea
google gives the following : http://mathforum.org/library/drmath/view/61135.html On Mar 3, 10:57 pm, xhe wrote: > I have met a problem. I want to get boundary longitude and latitude of > an area. That is within xxx KM of point A. > If you have the formula, can you please share with me? > > Than

[symfony-users] Re: Symfony Deployment

2009-03-01 Thread jukea
I've never used it , but from the subject of this thread, I think "phing" should at least be mentionned. From what I understood, it's basically like capistrano , but based on php5. Julien On Mar 1, 4:03 am, "Yevgeniy A. Viktorov" wrote: > On Tue, 2009-02-24 at 13:40 +, Lee Bolding wrote: >

[symfony-users] Re: Does sfDoctrineAdminGeneratorWithShowPlugin support table_method?

2009-02-22 Thread jukea
I don't know, i've never tried it :) as I said, go on the #symfony channel on freenode and look for "pcahard" On Feb 22, 7:50 pm, XinJia wrote: > Voila after svn update. Thanks Jukea. But there should be a little > problem with _show.php, field name can't be

[symfony-users] Re: Does sfDoctrineAdminGeneratorWithShowPlugin support table_method?

2009-02-21 Thread jukea
I remember talking to the developer about that and asked him to add table_method, which he told me he did. Are you checking in the svn repository ? the developper is pcahard and is hanging on irc . check freenode's #symfony On Feb 21, 8:58 am, XinJia wrote: > Hi, > > I don't know if you agree w

[symfony-users] Re: Passing embedded form from one partial to another

2009-02-19 Thread jukea
it's because escaping is enabled in your project (settings.yml). You can do something like $form = $form->getRawValue(); to retrieve the original object. Julien On Feb 19, 12:14 pm, Michal G wrote: > Hello, > > I have a release form, which embeds game form. > Release form is rendered by relea

[symfony-users] Re: Best practices for multi form pages

2009-02-17 Thread jukea
I'd definitely go with embedding forms. From the top of my head, when you build a composite form, it goes like this : - choose a form in which you'll embed other forms (meaning choose a model to base your form upon) - from this form's configure method, embed related objects like this : $relatedO

[symfony-users] Re: Could Symfony be easier to use?

2009-02-16 Thread jukea
+1 for voting/comments on plugins. Also : some plugins are not returned in the search results.. I think this has to do with the fact that they don't provide the file package.xml. Ex: go there http://svn.symfony-project.com/plugins/ check out sfDoctrineCommentsPlugin This looks like a great pi

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-15 Thread jukea
id above, Propel uses sfWidgetFormPropelChoice on 1..N > > > relations, but Doctrine not. > > > sfWidgetFormORMSelect class do not support expanded option! > > > This is exactly the problem that I have met. > > > > On 13 Feb, 19:13, jukea wrote: > >

[symfony-users] Re: Remove embedded forms / update object runtime

2009-02-15 Thread jukea
Hi patter, What I'd do is unset the embedded form as if ot was any other field. if($postedValues[..insert your input name...]=='') unset($subForm['embededFormName']) Do this from anywhere before you bind the data. You could also override the bind method in your form, unset the form there, a

[symfony-users] Re: Customizing labels when rendering an sfForm

2009-02-14 Thread jukea
Hi, just use $form->setLabel('fieldname','This is the label text'); Julien On Feb 14, 2:15 pm, Rytis Daugirdas wrote: > Hello, > > Is it possible to customize field labels when calling > sfForm::render($attributes)? If yes, what is the structure of the > $attributes array I should use? > > Re

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-13 Thread jukea
b 13, 12:55 pm, Daniele wrote: > I am not very expert on Trac or SVN, but I do not find anything about > this. > I found this that is only similar but not is the > same:http://trac.symfony-project.org/ticket/5784 > > On Feb 12, 11:17 pm, jukea wrote: > > > Hi, > >

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-12 Thread jukea
Hi, I think this has been corrected. Look for it in trac, or try 1.2.5dev (trunk) Julien On Feb 12, 4:35 pm, Daniele wrote: > Hi, > someone can help me to understand why my Doctrine admin generator (sf > 1.2.4) creates a sfWidgetFormDoctrineSelect instead of > sfWidgetFormDoctrineChoice on for

[symfony-users] Re: sf1.2: sfWidgetFormPropelChoiceMany custom form output

2009-02-11 Thread jukea
Hi Anton, Here's how I did exactly that in three easy steps ! It's not super clean /optimal / configurable code,but it works. (region_list is the widget name for a 1..n relation in my model) == 1 == I made a static method helper class espUtils { static public function fou

[symfony-users] Re: combining sfGuardUserProfile and sfGuardUser in admin backend

2009-01-27 Thread jukea
check this : http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin On Jan 27, 10:52 pm, vincent wrote: > Is there any way to combine sfGuardUserProfile and  sfGuardUser into > one from just to make it easy when adding new user? --~--~-~--~~

[symfony-users] Re: Generator: how to do stuff that was possible in 1.1?

2009-01-27 Thread jukea
> HOW TO ADJUST FILTERS AND HOW TO SET GLOBAL FILTERS? you can adjust filters in the genrator.yml with filters: field1, field2 for global stuff, what I did was something like this : class jobsActions extends autoJobsActions { public function preExecute() { parent::preExecute(); $t

[symfony-users] Re: Displaying an embedded form without nesting it

2009-01-23 Thread jukea
agree it's not very clean, but thanks for the info. I like this way too. I keeps things fully "automated" On Jan 23, 3:52 pm, isleshocky77 wrote: > Jukea, Thanks for the reply. I was just coming back to say I found a > way of doing it but I don't think it's as c

[symfony-users] Re: Displaying an embedded form without nesting it

2009-01-23 Thread jukea
yes, it's because the nested form is rendered as a row itself, with the widget being the whole form . I guess you might be able to do that by displaying each embedded form row like this $this->embedded_forms['myForm']['embedded_form_username']->renderRow (); (check sfFormDoctrine (or propel ) t

[symfony-users] Re: Embedding the same form multiple times

2009-01-22 Thread jukea
oops, I assumed you had some kind of relationship between mines, and the model in the parent form, but from answer I guess you don't have a parent model. On Jan 22, 6:22 pm, juro wrote: > Hmm, not sure which foreign key you are referring to... > > On Jan 23, 1:20 am, jukea wrote

[symfony-users] Re: Embedding the same form multiple times

2009-01-22 Thread jukea
just to clarify, this needs to be done , unless your embeded objects will not be linked to the parent. On Jan 22, 5:52 pm, juro wrote: > Hi, > > I am trying to embed the same form (MineForm.class.php) into one form > (MinesForm.class.php). Using the embedFormForEach would work, if I > need all M

[symfony-users] Re: Embedding the same form multiple times

2009-01-22 Thread jukea
just a quick idea : maybe you forgot to unset the foreign key in the MineForm::configuration method ? Julien On Jan 22, 5:52 pm, juro wrote: > Hi, > > I am trying to embed the same form (MineForm.class.php) into one form > (MinesForm.class.php). Using the embedFormForEach would work, if I > nee

[symfony-users] Re: Attaching global Doctrine listeners in a symfony application

2009-01-21 Thread jukea
David, That's kind of ugly, but I'd say if you implement an override of processForm, executeDelete and executeBatchDelete for each of your module, that would clear the cache, then call the parent, I think that would cover any type of modification. Julien On Jan 21, 9:36 pm, David Brewer wrote

[symfony-users] Re: SF.1.2 Admin Generator-Two modules in one

2009-01-21 Thread jukea
method to do custom handling of your extra fields.  You'll > > also need to create getters on the Company model that pass through to > > the appropriate version of the Address model in order to populate the > > values on the form. > > > On Wed, Jan 21, 2009 at 11:19 AM, j

[symfony-users] Re: SF.1.2 Admin Generator-Two modules in one

2009-01-21 Thread jukea
You could also use the versionable template if you use doctrine (mabe there's the equivalent for propel, like actAsVersionable or something), which automatially keeps a copy of older versions of the model records when you edit them. I think that could be a better solution. Or maybe you could cop

[symfony-users] Re: Sf 1.2 functional tests harness fails

2009-01-21 Thread jukea
Hi I had this problem too, and found why by running the individual failling test e.g : php /test/function/FooTest.php The problem was that I had to raise the memory_limit from 32MB to something greater (i.e : 128). Julien On Jan 21, 10:37 am, Jérôme TEXIER wrote: > Hi, > > I've got a pr

[symfony-users] Re: Embeded forms : create a company and the 1st contacts in a single operation

2009-01-16 Thread jukea
I found the solution , I just needed to unset the embedded form's foreign_key field in the configure method: unset($form_company['company_id']); On Jan 16, 6:16 pm, jukea wrote: > for anyone looking for the same kind of info, look at > > http://trac.symfony-project.

[symfony-users] Re: Embeded forms : create a company and the 1st contacts in a single operation

2009-01-16 Thread jukea
for anyone looking for the same kind of info, look at http://trac.symfony-project.org/ticket/4906 at the end, there's an example On Jan 15, 2:17 pm, jukea wrote: > Hi , > > How can I configure a form to handle the creation of a company and the > first of its contacts (the r

[symfony-users] Re: Introducing swDoctrineAssetsLibraryPlugin

2009-01-16 Thread jukea
just a quick comment : the plugin doesn't come up (as for many other I guess, why is that ?) when you check 1.2 and doctrine in the search engine. Julien On Jan 16, 3:37 am, "Thomas Rabaix" wrote: > Hello, > > I took some time to publish some work I have done on sfAssetsLibraryPlugin a > few m

[symfony-users] Embeded forms : create a company and the 1st contacts in a single operation

2009-01-15 Thread jukea
Hi , How can I configure a form to handle the creation of a company and the first of its contacts (the relation is a 1..n ) I did the following, but the contact's company_id is NULL after a save. The contact form has no special configuration (except unsetting created_at and updated_at) public

[symfony-users] Re: Admin generator filters in sf 1.2

2009-01-15 Thread jukea
Here are two strategies I used to do something similar (my ORM is doctrine) : 1) I needed to filter the query based on a date stored in the session, and the user_id, without these being in the filter form. in your module's action file, override preExecute to add a listener public function preEx

[symfony-users] Re: Doctrine admin : sorting and filtering are done before table_method makes joined tables available for query building

2009-01-14 Thread jukea
gt; - Jon > > > > On Tue, Jan 13, 2009 at 1:45 PM, jukea wrote: > > > Also , if I patch the admin code templates, is there any test I should > > code, before submitting a patch ? I found none for the generated > > admins > > > Julien > > > On J

[symfony-users] Re: Doctrine admin : sorting and filtering are done before table_method makes joined tables available for query building

2009-01-13 Thread jukea
Also , if I patch the admin code templates, is there any test I should code, before submitting a patch ? I found none for the generated admins Julien On Jan 13, 2:29 pm, jukea wrote: > Jon, > > I think the filter forms should get passed the table_method with a > setTableMethod, if

[symfony-users] Re: Doctrine admin : sorting and filtering are done before table_method makes joined tables available for query building

2009-01-13 Thread jukea
action template to use it as described above What's the best way I can help ? Submit a patch ? Julien On Jan 13, 2:11 pm, Jonathan Wage wrote: > Could we just change it so table_method is done first? > > - Jon > > > > On Tue, Jan 13, 2009 at 12:48 PM, jukea wrote: > &

[symfony-users] Re: Doctrine admin : sorting and filtering are done before table_method makes joined tables available for query building

2009-01-13 Thread jukea
etTableMethod to the pager, since it's already been applied to the query. This means requiring to fork the admin theme just to make these changes, which is really not the best design. On Jan 13, 1:42 pm, jukea wrote: > Hi, > > I'm building a plugin to make fields of foreign

[symfony-users] Doctrine admin : sorting and filtering are done before table_method makes joined tables available for query building

2009-01-13 Thread jukea
Hi, I'm building a plugin to make fields of foreign tables available to lists (in doctrine generated admins) as any other parameter, so that sorting (this is working) & filtering on them is possible. Here's an example of an "extended" generator.yml my plugin would make possible : (for a schema a

[symfony-users] Re: Using a form filter without the admin generator

2009-01-13 Thread jukea
My answer is for doctrine, but I think it should also apply to propel. The way it is built, I think you need to initiate the database query using them (e.g. : $query = $yourFilterForm->buildQuery ()). And then you can add your stuff (like sorting, joining addintionnal tables etc) Anyway, the be

[symfony-users] Setting the label for fields inside a i18n embedded form

2009-01-06 Thread jukea
Hi, Is there a way to modify the labels of a i18n embedded form (Ideally, by using directly the generator.yml file)? ex : DB: my_fieldname1 : VARCHAR my_fieldname2 : VARCHAR FORM : English: my_customized_fieldname1 [ ] my_customized_fieldname2 [ ] French:

[symfony-users] Re: spawn process which outlives request, to avoid timeouts

2008-09-24 Thread jukea
I read very quickly, but did you look into php's set_time_limit ? On Sep 24, 3:48 pm, Jack Bates <[EMAIL PROTECTED]> wrote: > I am using symfony to develop a web interface which runs certain jobs > (deploying sites to a shared host, updating deployed sites, etc.) > > The trouble is that these job

[symfony-users] Re: Symfony clear-cache locking the CLI environment ?

2008-09-19 Thread jukea
For my part, I manage to bypass the problem by erasing cache/* manually and symfony cc _seems_ to work (if there's anything left to be done after that) On Sep 19, 5:23 am, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 2:07 AM, Cristiano <[EMAIL PROTECTED]> wrote: > > I

[symfony-users] Symfony clear-cache locking the CLI environment ?

2008-09-18 Thread jukea
hi, symfony cc locks each environement before clearing the files. For me, the task seemed broken. So, after tracking the bug, it turns out that my symfony cc locks the CLI env too (is this normal?), and thus quits with an unavailable page outputed directly in the console... so in other terms, i

[symfony-users] Re: Peer method not found class... with sfDoctrinePlugin

2008-09-16 Thread jukea
I have the same problem here. On Sep 16, 10:05 am, Martin Groh <[EMAIL PROTECTED]> wrote: > Hi there, > > Im using sf 1.1.1 together with the sfDoctrinePlugin 2.0 (checked out > with svn:externals). > Yesterday everything went well. After doing an update for my sources > (and with it, updating th

[symfony-users] Debugging site on the prod server

2008-09-09 Thread jukea
) a bad DB connection causes a fatal error, hence a blank page, so that's one of the things I'd check first. - Enable symfony logs, and check them - Some people upload the dev controller to have more info, ( and yes, they usually repent after tellin