[symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-18 Thread RusAlex
If integer(4) have another error: SQLSTATE[HY000]: General error: 1005 Can't create table 'ranks.#sql-3a5_b1c' (errno: 150). Failing Query: ALTER TABLE rank_domain ADD CONSTRAINT rank_domain_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id). Failing Query: ALTER TABLE

[symfony-users] Re: APPs vs Modules/Actions: Pro's and Con's????

2010-08-18 Thread Christian Schaefer
I'm not sure I got you correctly but it seems you are talking about several administrative tasks that are executed by different persons/ roles, right? if you would create an app per person/role you will likely encounter duplicated code a lot. also you would have to maintain a far more complex

[symfony-users] Please help me to get rid of these warning messages

2010-08-18 Thread ajit
Hello All, I am getting this warning messages...Please help me to get rid of those messages. Warning: constant() [function.constant]: Couldn't find constant Region::PEER in /var/www/dms/lib/symfony/plugins/sfPropelPlugin/lib/ widget/sfWidgetFormPropelChoice.class.php on line 79 Warning:

[symfony-users] Adding time to a date symfony 1.4

2010-08-18 Thread François SEDE
Hi everyone. I want to add the value of an sfWidgetFormI18nTime to an sfWidgetFormJqueryDate and store it into a column in my database but it doesn't work. here is my form. $dateWidget = new sfWidgetFormI18nDate(array( 'format' = '%day%/%month%/%year%',

[symfony-users] sfWidgetFormDate datepicker range problem

2010-08-18 Thread wueb
I'm using sfWidgetFormDate with a datepicker (http:// garakkio.altervista.org/datepicker/) The code in the form is: $years = range(date(Y),1980); $this-widgetSchema['date_const'] = new sfWidgetFormDate(array('years' = array_combine($years, $years),'format' = '%day% - %month% - %year %')); My

[symfony-users] Where to place model integrity checks

2010-08-18 Thread axel at
Additional to FormValidation I often need model lowlevel integritychecks before saving an object. eg. to check if there are related objects before delete. I think these checks should be placed in the model class, but it's neccessary to call them from an actioncontroller and to deal there with the

[symfony-users] Country City problem

2010-08-18 Thread Andro Fumero
Good day, Does any one tried to make a drop down Countries, and when its clicked, it will display the list of cities based on the selected Country. I have read about steps in how to do this, but doesnt have a sample code. I dont know where to start about this one coz im still new. I dont even

RE: [symfony-users] APPs vs Modules/Actions: Pro's and Con's????

2010-08-18 Thread Benoit Montuelle
Hi, If you have to share functionnality accross multiple apps / customers / access the best way imho is to put everithing in plugins. As in symfony 1.4 the application is required to access plugins, you can use 3 kinds of plugins : - Application plugins : direct port from the current app. It

Re: [symfony-users] Country City problem

2010-08-18 Thread Gustavo Adrian
This could help: http://www.symfony-project.org/plugins/sfDependentSelectPlugin On Wed, Aug 18, 2010 at 7:18 AM, Andro Fumero fugitive...@yahoo.com wrote: Good day, Does any one tried to make a drop down Countries, and when its clicked, it will display the list of cities based on the

Re: [symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-18 Thread Gustavo Adrian
Could you paste your RankDomain fixtures? the problem may be there On Wed, Aug 18, 2010 at 3:12 AM, RusAlex interpret...@gmail.com wrote: IT's a standart fixtures: sfGuardUser: User_admin: first_name: John last_name: Doe email_address: john@gmail.com username:

[symfony-users] Re: Please help me to get rid of these warning messages

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:03, ajit csa...@gmail.com wrote: I am getting this warning messages...Please help me to get rid of those messages. Warning: constant() [function.constant]: Couldn't find constant Region::PEER in /var/www/dms/lib/symfony/plugins/sfPropelPlugin/lib/

[symfony-users] AW: created_at gets deleted on edit

2010-08-18 Thread Christopher Schnell
A part of it, I can answer myself: the updated_at column is set to null if I press save in the Form and do not really make an update (i.e. leave all values, as they are). However, updated_at is written if I really update a value. Seems to me like a problem in Propel 1.5. I guess, it will be

[symfony-users] Unhappy: sending mails with layout

2010-08-18 Thread Georg
Hello, I am confused. I would like to send emails with layout and template from any place in my project, application or a task. Reading the docs (http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails), it tells me to put each email in a class, and Of course, adding a base class to

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-18 Thread Tom Boutell
I should probably just store the information via sfCache and allow sfAPCCache etc. to be plugged in as an alternative to the default sfFileCache to avoid overhead rather than being cute about it... On Aug 17, 9:39 am, Stéphane stephane.er...@gmail.com wrote: I didn't took a look at the

[symfony-users] Re: Adding time to a date symfony 1.4

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:34, François SEDE francois.s...@gmail.com wrote: Hi everyone. I want to add the value of an sfWidgetFormI18nTime to an sfWidgetFormJqueryDate and store it into a column in my database but it doesn't work. Don't use sfWidgetFormJqueryDate. See

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-18 Thread Tom Boutell
A specific task would be convenient for those who consider 'symfony cc' too heavy, and I could still invoke it automatically from a 'symfony cc' hook. Would you mind opening a ticket on trac.apostrophenow.org to remind me to look at this? On Aug 17, 9:54 am, Stéphane stephane.er...@gmail.com

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-18 Thread Stéphane
Done : http://trac.apostrophenow.org/ticket/533 http://trac.apostrophenow.org/ticket/533Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Aug 18, 2010 at 3:24 PM, Tom Boutell t...@punkave.com

Re: [symfony-users] Country City problem

2010-08-18 Thread Andro Fumero
That was quick adriane. It helps me a lot. Thanks From: Gustavo Adrian comfortablynum...@gmail.com To: symfony-users@googlegroups.com Sent: Wed, August 18, 2010 8:39:16 AM Subject: Re: [symfony-users] Country City problem This could help:

[symfony-users] too many queries with embedded forms

2010-08-18 Thread spike3111
Hello, I use the plugi ahDoctrineEasyEmbeddedRelationsPlugin to embed forms. My schema is basic, I have a pet that may have a type of crying, a type of displacement, a place to live and belong to a group. So a four relationships one to many. I wanted my embed forms of animals in the middle of

[symfony-users] Re: sfWidgetFormDate datepicker range problem

2010-08-18 Thread Massimiliano Arione
On 17 Ago, 13:50, wueb webmaster@gmail.com wrote: I'm using sfWidgetFormDate with a datepicker (http:// garakkio.altervista.org/datepicker/) The code in the form is: $years = range(date(Y),1980); $this-widgetSchema['date_const'] = new sfWidgetFormDate(array('years' =

[symfony-users] How to: You can also delegate the rendering to a component by prefixing the field name by a tilde (~)

2010-08-18 Thread Salsero
Hello, I am at day 12 of Doctrine Jobeet tutorial.. I've seen the note: You can also delegate the rendering to a component by prefixing the field name by a tilde (~). But I cannot understand it. When exactly could I prefix the tilde? in the generator.xml? My knowledge is at foggy level ...

[symfony-users] Doctrine tutorial, Day 12 - Cannot see is_activated and expires_at in Admin section of the Job Form page.

2010-08-18 Thread Salsero
Hello http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12 The tutorial says I can split fields in two sections form: display: Content: [category_id, type, company, logo, url, position, location, description, how_to_apply, is_public, email] Admin: [_generated_token,

[symfony-users] Re: Doctrine tutorial, Day 12 - Cannot see is_activated and expires_at in Admin section of the Job Form page.

2010-08-18 Thread Salsero
Are they disabled somewhere? Do some configuration override the generator.yml? I refactor this question :-D I can answer myself.. I created the BackendJobeetJobForm... BUT: the fileds do not show up yet. I also launched symfony cache:clear but maybe it is not the right clearing cache

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : Unexpected extra form field named Interests error

2010-08-18 Thread Rudth-Mael Galite
Hello everyone. I am trying to manage a user's profile which has interests. Here is the database structure : Profile: actAs: { Timestampable: ~ } tableName: user_profile columns: ... relations: Interests: class: Interest local: id foreign: user_profile_id

[symfony-users] Re: Overriding files from a plugin within another plugin

2010-08-18 Thread Richtermeister
Yes, and yes. :) On Aug 17, 12:11 pm, Daniel Kucharski dan...@inspiran.be wrote: Hi, Is it possible to create a plugin which overrides various settings / classes from other symfony plugins (routing, schema, model classes)? If so, does the order how plugins are loaded (in the project

[symfony-users] Problem with showing the atom

2010-08-18 Thread Barry
Hi! I am doing the Jobeet classes usingf Symfony 1.4 with Doctrine and now I am on Day 14 trying to make work the Feeds: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/14 But I have a problem: when I go to a feed link that should interprete the indexSuccess.atom.php, it doesn´t work. I´ve

[symfony-users] How to remove the TH elements in embedded forms in admin generator

2010-08-18 Thread Christian Fazzini
At the following screenshot: http://imagebin.org/110208 how do I remove the th elements. i.e. the ones with 0,1,2? I know I can make css hide this. But I'd like to know a cleaner way of doing this? Been struggling with this to no avail. -- If you want to report a vulnerability issue on

Re: [symfony-users] How to remove the TH elements in embedded forms in admin generator

2010-08-18 Thread Gustavo Adrian
Overriding the view for that special case? or creating your own collection form, assigning a friendly name instead of the numeric ones. Or you could simply use jQuery or css, as you said. On Wed, Aug 18, 2010 at 1:47 PM, Christian Fazzini christian.fazz...@gmail.com wrote: At the following

[symfony-users] Unknown record property in more than one m-n relationships

2010-08-18 Thread Kostas
Hi, Iv been having a problem that bothers me for the last couple of weeks. My schema.yml file contains the following amongst others: Book: actAs: Timestampable: ~ I18n: fields: [name, subtitle, schema, color, description] columns: name: { type: string(255), notnull: true }

[symfony-users] Two caches, two cache manager ?

2010-08-18 Thread Antoine S.
Hi Does anyone have an experience to have two different cache on a same application ? Maybe one cache manager able to store in two different cache (sfCache) ? or two cache manager ? I am trying to have a normal cache by default, and a second cache when the client has javascript activated. (in

[symfony-users] sfGuardAuth: where is the page after login defined?

2010-08-18 Thread Peter Peltonen
A simple question: I'm new to sfGuardAuth. I have inherited a symfony 1.2 application which redirects the user to /profile module after login. I would need to change this to the /mypage module but I cannot find where this page where user is redirected after signing in is defined? Best, Peter

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : Unexpected extra form field named Interests error

2010-08-18 Thread Daniel Lohse
Hmm, this is a deeply nested embedded relation – am I right, that you're really not editing the profile but the user – which embeds the profile which embeds the interests? You could try to check out the trunk in the Subversion repository because nested embedded relations were added recently by