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

2010-08-18 Thread Kostas
I did another test. The problem does not have to do with the sfDoctrineGuardPlugin. It has to do with the fact that there are more than one m-n relationships with the same table (sfGuardUser). Tried it with a custom table as well (not the sfGuardUser) and gives the same error. Any thoughts? -- I

[symfony-users] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

2010-08-18 Thread Maxim Oleinik
protected function authenticateUser(sfGuardUser $user) { // Init session $context = $this->browser->getContext(true); $context->getUser()->signIn($user); $context->getUser()->shutdown(); $context->getStorage()->shutdown(); } -- If you want to report a vulnerability issue on s

[symfony-users] Re: too many queries with embedded forms

2010-08-18 Thread Richtermeister
I've come across this as well, and the reason is that many of the choice widgets fire off a query to populate themselves. if you have 4 relationships per object that gives you 4 queries, and by embedding that many times, it multiplies quickly. I don't think there's anything you can do about this ot

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

2010-08-18 Thread Christian Fazzini
Yea but admin gen view is a mess. Isn't there a way to do this directly in the form class? i.e. in the configure() method? On Aug 19, 2:10 am, Gustavo Adrian wrote: > Overriding the view for that special case? or creating your own collection > form, assigning a friendly name instead of the numeri

Re: [symfony-users] too many queries with embedded forms

2010-08-18 Thread Daniel Lohse
Mhm, that sure sounds like a lot. :( In the example I've given in the README I only have one additional query per embedded relation so something must be going wrong. Can you post the content's of your CanardCategorie form's configure() method please? And a couple of screenshots showing the admi

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 a

[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

[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 t

[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 }

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 s

[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 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 symfo

[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 al

[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" 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 configuration) > m

[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 ty

[symfony-users] [SOLVED] 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
> BUT: the fileds do not show up yet. > I also launched > symfony cache:clear > > but maybe it is not the right clearing cache command. :-( Sorry I forgot to remove the "unset" command in the parent::config() method. -- If you want to report a vulnerability issue on symfony, please send it to

[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 comman

[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, is_ac

[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] Re: sfWidgetFormDate datepicker range problem

2010-08-18 Thread Massimiliano Arione
On 17 Ago, 13:50, wueb 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' > => array_combine($years, $years),

[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 lif

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 To: symfony-users@googlegroups.com Sent: Wed, August 18, 2010 8:39:16 AM Subject: Re: [symfony-users] Country City problem This could help: http://www.symfony-project.org/plugins/sfDepend

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 Cheers, 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 wrote: > A specifi

[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 wrote: > +1 for the specific

[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 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 http://garakkio.altervista.org/datepickerui/ cheers M

[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 wrote: > I didn't took a look at the implementation yet. > > PHP is ca

[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 cen

[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] Re: Please help me to get rid of these warning messages

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:03, ajit 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/ > widget/sfWidgetFormPropelChoice.class.php

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 wrote: > IT's a standart fixtures: > sfGuardUser: > User_admin: >first_name: John >last_name: Doe >email_address: john@gmail.com >username: admin >

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 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 selected Country. > I

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 co

[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 k

[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] 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 %'));

[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] 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: call_us

[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 sys