[symfony-users] symfony2:

2010-08-19 Thread symfony.reloa...@googlemail.com
Hello, is it possible to handle multiple db connections with symfony2? Is there a guide for this question? thanks for any answer. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed

[symfony-users] symfony2: constructor in controller class

2010-08-19 Thread symfony.reloa...@googlemail.com
Hello, what about initializing your custom controller class. Is it suitable to overrite the __constructor of the inherited class Symfony\Framework\FoundationBundle\Controller, and there to call the parent constructor? Are there similar to the Zend Framework init(), preDispatch() and

[symfony-users] Re: Symfony2 PR3 and keeping up with the Symfony2 sandbox changes

2010-08-19 Thread symfony-reloaded
Hi Fabian, I am new to Symfony2 and evaluating the framework. I checked out the svn repository today, and I did download the sandbox and the noelg-symfony-demo-7955c53. I do miss a file with a version number. sandbox and noelg-sf-demo differ from the svn (2010-08-18) but nowhere a version to be

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

2010-08-19 Thread spike3111
Daniel, Thank for you help, I send you the email. And here my form: $this-setWidget('intitule', new sfWidgetFormTextarea(array(), array('cols' = '40'))); $this-setWidget('activites_list', new sfWidgetFormSelectDoubleList(array( 'choices' =

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

2010-08-19 Thread Peter Peltonen
Thanks for your reply. I've read the documentation which states: If you want to redirect the user to his profile after a success login or define a logout site. You can change the redirect values in app.yml: all: sf_guard_plugin: success_signin_url: @my_route?param=value #

[symfony-users] Unsuscribe from digets

2010-08-19 Thread Nicolas Braquart
Hi, I would like to unsuscribe from emails sent for the digest for symfony because i have no time to read it. Thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the

[symfony-users] schema modified but same old database

2010-08-19 Thread KEY5
Hello, I have changed some things in the schema.yml and cleared cache ( both symfony cache:clear and symfony cc :-D ) I've rebuilt the model, I've done symfony doctrine:build --sql yet the same database is recreated, (deleted tables are back every time...) What am I missing? -- If you want

Re: [symfony-users] schema modified but same old database

2010-08-19 Thread Jérémie
There must be your old class in lib/form lib/model/ lib/filters... I had the same problem, and it seems like symfony uses you schema.yml but also base files in these directories. Delete them, rebuild everything and it should be ok! Jérémie Le jeudi 19 août 2010 à 10:34 +0200, KEY5 a écrit :

Re: [symfony-users] schema modified but same old database

2010-08-19 Thread Stéphane
Look at the doctrine:clean-model-files task Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Aug 19, 2010 at 11:41 AM, Jérémie jeremie.symf...@gmail.com wrote: There must be your old class in

Re: [symfony-users] schema modified but same old database

2010-08-19 Thread Gábor Fási
./symfony doctrine:clean-model-files On Thu, Aug 19, 2010 at 10:34, KEY5 key5...@gmail.com wrote: Hello, I have changed some things in the schema.yml and cleared cache ( both symfony cache:clear and symfony cc  :-D ) I've rebuilt the model, I've done symfony doctrine:build --sql yet the

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

2010-08-19 Thread Christopher Schnell
are you sure, that your predecessor didn't make any changes to the plugin itself? Shouldn't have, but you never know. AFAIK the referrer is used, if you got logged out due to a timeout. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com

[symfony-users] Basic routin question

2010-08-19 Thread torok84
Hi, I'm quite new to Symfony. I have something strange with routing. My apps/frontend/config/routing.yaml contain this homepage: url: / param: { module: content, action: index } default_index: url: /:module param: { action: index } default: url: /:module/:action/* If i open

[symfony-users] Re: Basic routin question

2010-08-19 Thread catchamonkey
Hi, Clear your cache. I would presume that is the problem. The dev environment is using the new route as it clears the cache on every request. But your production environment is using the cache as it hasn't been cleared manually. Chris On Aug 19, 11:25 am, torok84 toro...@gmail.com wrote:

Re: [symfony-users] Unhappy: sending mails with layout

2010-08-19 Thread Georg
Please? Am 18.08.2010 15:22, schrieb Georg: Hello, I am confused. I would like to send emails with layout and template from any place in my project, application or 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

Re: [symfony-users] symfony2: constructor in controller class

2010-08-19 Thread Fabien Potencier
On 8/19/10 8:51 AM, symfony.reloa...@googlemail.com wrote: Hello, what about initializing your custom controller class. Is it suitable to overrite the __constructor of the inherited class Symfony\Framework\FoundationBundle\Controller, and there to call the parent constructor? You can inherit

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

2010-08-19 Thread spike3111
Oups, it was not CanardCategorieForm, this is it : unset( $this['created_at'], $this['updated_at'], $this['canard_groupe_list'] ); $this-setWidget('description', new sfWidgetFormTextarea(array(), array('size' = '20x5'))); $this-setWidget('vol_id', new

Re: [symfony-users] Re: Basic routin question

2010-08-19 Thread Gareth McCumskey
To clarify this, the cache he means is the symfony application cache. On the command line in your project root directory type symfony cc On Thu, Aug 19, 2010 at 12:43 PM, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Clear your cache. I would presume that is the problem. The dev

[symfony-users] Create auto increment index on save

2010-08-19 Thread Reo
Hi, I have a one-to-one relation in with sfGuardUser. As I want to have a clean code, i'd like to override save() in lib/model/doctrine/ sfDoctrineGuardPlugin/sfGuardUser.class.php to create a new row in the other table of the relation each time the save function is called. Things is that the new

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 48 Messages in 26 Topics

2010-08-19 Thread joost . farla
Beste, Donderdag 19 tot en met maandag 23 augustus ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: dimi...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch

[symfony-users] Re: Basic routin question

2010-08-19 Thread XAH
do symfony clear-cache On 19 авг, 17:25, torok84 toro...@gmail.com wrote: Hi, I'm quite new to Symfony. I have something strange with routing. My apps/frontend/config/routing.yaml contain this homepage:   url:   /   param: { module: content, action: index } default_index:   url:  

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

2010-08-19 Thread Massimiliano Arione
On 19 Ago, 05:14, Maxim Oleinik maxim.olei...@gmail.com wrote: protected function authenticateUser(sfGuardUser $user) {     // Init session     $context = $this-browser-getContext(true);     $context-getUser()-signIn($user);     $context-getUser()-shutdown();    

[symfony-users] Re: Basic routin question

2010-08-19 Thread torok84
Thanks, it worked. On Aug 19, 1:22 pm, Gareth McCumskey gmccums...@gmail.com wrote: To clarify this, the cache he means is the symfony application cache. On the command line in your project root directory type symfony cc On Thu, Aug 19, 2010 at 12:43 PM, catchamonkey ch...@sedlmayr.co.uk

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

2010-08-19 Thread Christopher Schnell
You are talking about functional tests, but the original post was about unit tests. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony- us...@googlegroups.com] Im Auftrag von Massimiliano Arione Gesendet: Donnerstag, 19. August 2010

[symfony-users] Doctrine Query Cache and Symfony Pagers

2010-08-19 Thread Lea Haensenberger
Hi all, I'm having trouble with the doctrine query cache in combination with pagers. I have a query with some inner and left joins that I use with a pager. The pager then creates a subquery to get the right amount of rows from the db: SELECT * FROM table1 c LEFT JOIN table2 c2 ON c.id = c2.id

[symfony-users] Setting up SF under IIS

2010-08-19 Thread Petronel
Hi everyone ! I am new and I've tried to learn from jobeet and askeet tutorials. I've managed to create a app and finally I've tried to place it online for my boss. Problem is that the production server is a windows 2003 with IIS. I've checkout there symfony version 1.4.0 (C:\symfony\lib) and

[symfony-users] Signout Flagged User from Admin Backend

2010-08-19 Thread Emre
I'm trying to make the admin able to sign out a user when he flags them from the backend while using SfDoctrineGuardPlugin. I thought I got the filter class down: public function execute($filterChain) { // Use context object since filters don't have direct access to request or user

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

2010-08-19 Thread Kostas
For the history, found it eventually. It was the same foreignAlias in the Book table: foreignAlias: Books -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups

[symfony-users] How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Alexis Sanchez
Hi! I have a doctrine model like this: Asset: columns: filename: { type: string(255), notnull: false, unique: true } filesize: { type: integer, notnull: true } In the saving process I want to check if the user has left the filename empty. In that case i want to set the filename with

Re: [symfony-users] How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Rodrigo Ruiz
El 19/08/2010 15:55, Alexis Sanchez escribió: Hi! I have a doctrine model like this: Asset: columns: filename: { type: string(255), notnull: false, unique: true } filesize: { type: integer, notnull: true } In the saving process I want to check if the user has left the filename

[symfony-users] Re: How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Rodrigo Ruiz Fuentes
You can use triggers 'before insert, update' over the table for do that. 'AFTER INSERT, UPDATE' I mean. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups

[symfony-users] organizing partials in folders

2010-08-19 Thread Joshua
include_partial(headline_news); How can I do this with partial _headline_news.php inside a folder within templates? If I try something like project_root/apps/frontend/modules/some_module/templates/folder/ _headline_news.php Then in the template index include_partial(folder/headline_news); The

Re: [symfony-users] How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Georg
Why don't you give it just a random name? Am 19.08.2010 21:55, schrieb Alexis Sanchez: Hi! I have a doctrine model like this: Asset: columns: filename: { type: string(255), notnull: false, unique: true } filesize: { type: integer, notnull: true } In the saving process I

[symfony-users] Re: Unhappy: sending mails with layout

2010-08-19 Thread Antoine S.
Hi, I quiet like to use the dispatcher to send email. The listener will build the email. For the layout, I only use partial -renderPartial(), that can act as a layout because you can include other partial/component in a partial. Maybe with sfView or sfPHPView there is a way to render a complete

[symfony-users] Changing a plugin modules securitysettings

2010-08-19 Thread Tarjei
Hi, I got an app where I have set is_secure:true in app/admin/config/ security.yml. For those modules I want to have public access to, I then change the setting in the module/someModule/config/security.yml file. But, now I got a problem, because I have integrated a symfony plugin, and in that

Re: [symfony-users] How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Gustavo Adrian
If you have unique = true and notnull = true then you have to assign a unique filename before you save the object, or you would have an exception. The better way would be to just assign a random name, as Georg says. If you really need the ID on the name, then first assign a random name and, after

Re: [symfony-users] How to set a field with the id of the doctrine object in the saving process

2010-08-19 Thread Gustavo Adrian
I forgot to mention: The exception would be thrown if you attempt to insert (or update) a second object with an empty filename (having a nullable field you could insert as many objects as you want with NULL assigned to that field) On Thu, Aug 19, 2010 at 7:08 PM, Gustavo Adrian

[symfony-users] Using Session in Symfony2 PR3

2010-08-19 Thread Michael
I created a class for UserSecurity which extends the Symfony\Components \HttpFoundation\Session. Then i use $this-session- setAttribute('isAuthenticated', true); to tell the code that the user is logged-in. but it doesn't store it in the session. Any ideas why? do I have to run something after I

[symfony-users] doSave on a standalone sfForm

2010-08-19 Thread bretth
Hi, I have made a custom form which extends sfForm. The responses from the form are to be stored in a third party CRM database via a web service; they have no connection to the local database or an object in schema.yml. I need to send those values through when the form is saved and valid; but

[symfony-users] Check culture in i18n form

2010-08-19 Thread HAUSa
When I'm in the i18n form class (example: PageI18nForm.class.php), how can I see for which culture it is? Because in the PageForm.class.php, the PageI18nForm.class.php is called for each culture I embed it for. So, I need to retrieve that in the i18n form itself. -- If you want to report a

Re: [symfony-users] doSave on a standalone sfForm

2010-08-19 Thread Gustavo Adrian
I would create a custom form class that extends from sfForm (sfFormCRM for example) and put there all the saving logic of the form. Then it would be a nice idea to have a BaseFormCRM that inherits from your sfFormCRM to have a place to put common application logic between your CRM forms without