Re: [symfony-users] Error when adding new data - really really stucked with this one...

2011-04-27 Thread Francesco Tassi
On giovedì 28 aprile 2011 at 01.27, JP wrote: Hi everyone, > > I'm facing some issues after insert a "Patient" with a form generated with > php symfony doctrine:generate-admin backend Patient --module=patient task. > The form is inserting the data into a mysql DB correctly, but after the > inse

[symfony-users] Aw: Re : Using form.factory in PR12?

2011-04-27 Thread Sebastian Göttschkes
Hi, thanks for the info. I should read the blog more often. Sebastian -- 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" group. To post to this g

[symfony-users] R: Re: R: Doctrine data-dump and data-load Fixtures

2011-04-27 Thread ftassi
Il giorno mercoledì 27 aprile 2011 02:13:12 UTC+2, David ha scritto: > > Yes, I built the model before loading. I was also able to replicate > the errors in the doctrine sandbox. It looks like the real problem is > that the doctrine data dump is not correctly adding quotes to the > string fi

[symfony-users] R: Vs: R: $form->getErrors() returns an empty array even $form->isValid() evaluates to false

2011-04-27 Thread ftassi
Il giorno mercoledì 27 aprile 2011 21:07:58 UTC+2, Ville Mattila ha scritto: > > Hi Francesco, > > First of all, I forgot to mention that this all is about Symfony 2. > Ouch ! so my links were not very useful :D Unfortunately I'm not so confident with symfony2 form objects to give you a fast r

[symfony-users] Re : Using form.factory in PR12?

2011-04-27 Thread symfonyMan
hello, in PR12 the form is not merged; you still have the previous form framework you must update your core (vendors ) if you want to use "form.factory" the beta version is not disponible yet, it will appeard next week ( as whrot in symfony blog http://symfony.com/blog/a-week-of-symfony-225-1

Re: [symfony-users] Using form.factory in PR12?

2011-04-27 Thread chakir ezziani
hello, in PR12 the form is not merged; you still have the previous form framework you must update your core (vendors ) if you want to use "form.factory" the beta version is not disponible yet, it will appeard next week ( as whrot in symfony blog http://symfony.com/blog/a-week-of-symfony-225-18-2

[symfony-users] Re: SF2 - User Impersonation Unable to Switching Back

2011-04-27 Thread Roger Webb
Also, does anyone know how to tell if the logged in user is being "impersonated"? I, of course, would like to have a link up top to switch back to the original user when we're impersonating one. On Apr 27, 3:20 pm, Roger Webb wrote: > Greetings, > > I've set up a system using SF2 Security and U

[symfony-users] SF2 - User Impersonation Unable to Switching Back

2011-04-27 Thread Roger Webb
Greetings, I've set up a system using SF2 Security and User Impersonation. Relevant lines from config.yml firewalls: user: switch_user { role: ROLE_USER_ADMIN } Switching to a user with "http://www.mydomain.com/blah? _switch_user=username" works fine, but I am unable to switch back

[symfony-users] Using form.factory in PR12?

2011-04-27 Thread Sebastian Göttschkes
Hi, I'm trying to add a simple form following the Forms-Tutorial: http://symfony.com/doc/2.0/book/forms.html Symfony is telling me "The service "form.factory" does not exist." when I do $form = $this->get('form.factory'); I searched the internet but didn't find anything and I had a look at the

[symfony-users] Vs: R: $form->getErrors() returns an empty array even $form->isValid() evaluates to false

2011-04-27 Thread Ville Mattila
Hi Francesco, First of all, I forgot to mention that this all is about Symfony 2. I've set up a quick test snippet to gist: https://gist.github.com/944930 . Controller, form and data object are all there in one file. Template is something I didn't include because it's only {{ contents }} and {{

Re: [symfony-users] New form system questions

2011-04-27 Thread Vincent Lechemin
On Tue, Apr 26, 2011 at 4:00 PM, Vincent Lechemin wrote: > 'data' => array('value1' => true, 'value2' => true) After checking ArrayToBooleanChoicesTransformer, the right way to do it was: 'data' => array('value1', 'value2') -- Vincent -- If you want to report a vulnerability issue on symfony,

Re: Tr : [symfony-users] [sf2] Access to current route

2011-04-27 Thread A A
"@" seems to be a kludge :) 2011/4/27 Louardi Abdeltif > I corrected the problem, I modified line 136 (file : * > SITE_PATH/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php > *) > > BEFORE: > return serialize(array($this->user, $this->authenticated, $thi

[symfony-users] Re: Symfony2 exception trying to initalize FOSUserBundle with ODM/MongoDB

2011-04-27 Thread toberger
Are you using PR12 of Symfony2? There I got the same error and made an update of Symfony to the current version from GitHub. That fixed it. -- 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 subs

[symfony-users] Switching roles with moderation

2011-04-27 Thread Vincent Lechemin
Hello, I'd like to use 'ROLE_ALLOWED_TO_SWITCH' for someone else than the super admin. But once a user has this role, he can switch to any role, even the super admin. Even with the following configuration: security: access_decision_manager: strategy: unanimous Is there a way to limit t

Tr : [symfony-users] [sf2] Access to current route

2011-04-27 Thread Louardi Abdeltif
I corrected the problem, I modified line 136 (file : SITE_PATH/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php) BEFORE: return serialize(array($this->user, $this->authenticated, $this->roles, $this->attributes)); AFTER: return @serialize(array($this->

Re: [symfony-users] R: download file

2011-04-27 Thread Hamza Tlili
hi i resolved the problem i forgot this lines [?][?] $this->getResponse()->sendHttpHeaders(); $this->getResponse()->setContent(readfile($path)); thanks ftassi for your reply 2011/4/27 Hamza Tlili > thanks for your reply > i changed the upload _dir as you said i followed the example but the siz

Re: [symfony-users] R: download file

2011-04-27 Thread Hamza Tlili
thanks for your reply i changed the upload _dir as you said i followed the example but the size of the file always 0 octet thanks 2011/4/26 ftassi > In order to avoid unwanted downloads you have to put your file outside > your web dir (maybe you can store files in data/). This will prevent dire

Re : [symfony-users] [sf2] Access to current route

2011-04-27 Thread Louardi Abdeltif
I have a notice with this new beta. when i use the prod environement i haven't this notice. Notice: serialize() [function.serialize]: "id" returned as member variable from __sleep() but does not exist in SITE_PATH/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/Abstrac

[symfony-users] Getting application config item within task's execute() function

2011-04-27 Thread pantherse
I just spent the day trying to figure out how can I get the value of a configuration item from within my symfony task. My configure function already adds the application and env options. Doing a var_dump on $this->configuration confirms that I have an sfApplicationConfiguration object. But how do

[symfony-users] [Symfony2] Elisp Library to integrate a bit Symfony2 in emacs

2011-04-27 Thread Moises Gallego
Hi all I created a small library to integrate a bit Symfony2 in the Emacs editor, I suppose not many of you use emacs, but if someone helps you i put a link. I have no intention to improve a lot, and I do not know very well elisp and I created for my emacs a little better and make it even more pr

[symfony-users] [sf2] EntityChoiceField

2011-04-27 Thread Louardi Abdeltif
Hello all, I want use EntityChoiceField in my form with this new change  (i use the last update) thanks. -- 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 "symf

[symfony-users] Update to the latest version

2011-04-27 Thread László Teveli
Hi everyone! We've started a Symfony2 project, which was based on PR9. Now we wanted to update to the current PR12 (or the Beta release next week). I was just wondering if is there any easy way to to that without starting a new project and copy all the files we added/modified. We use an SVN repo,

[symfony-users] Re: Symfony2 pdf Book

2011-04-27 Thread ludovicraymond
Hi, You can use this personal style sheet on symfony book pages (example : with firefox and webdev toolbar) and print these in pdf format. body{ font-size: 1.1em; } .sensiolabs_network_bar, .header, .main_menu, .column_01, .box_relative_content, .footer, box_title{ display:none;

[symfony-users] [Symfony 2] Bundles, large models, Front & Back splitting

2011-04-27 Thread Stéphane
Hello Community, When considering writting large apps with sf2, with a back and a front, some questions are occuring, about how to structure things. Say we have one large website with a front-end for end-users and a back-end to feed the front-end, control objects, etc. The two "apps" will use sa

[symfony-users] Sf1.4 plugins in Symfony2

2011-04-27 Thread Manu
Will the most used plugins in sf1.4 be ported to Sf2 ? I use three plugins on my 1.4 project : - sfDoctrineGuardPlugin - sfDoctrineActAsTaggablePlugin - sfFormExtraPlugin sfDoctrineActAsTaggablePlugin adds a javascript widget for inputing tags, I think I will be able to recreate it in Sf2. What a

Re : Re: Re : Re: Re : Re: [symfony-users] [sf2] Access to current route

2011-04-27 Thread winzou
Hence my question ! So I understand that it's not possible to do what I want ? -- 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" group. To post to

[symfony-users] Re: Aw: [Symfony2] AccessDeniedException = 500 internal server error?

2011-04-27 Thread Carl
Ok, I guess I just didn't dig deep enough, and now I feel silly. There are two security parameters that can be set under your firewall definition: access_denied_handler access_denied_url The solution was so simple that it was incredibly easy for me to miss. :) http://symfony.com/doc/2.0/book/se

Re: [symfony-users] New form system questions

2011-04-27 Thread Vincent Lechemin
I looked into the code and I found: $builder->addEventListener(Events::onBindClientData, function (FilterDataEvent $event) { ... }); Maybe it could help someone :) -- Vincent -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.

[symfony-users] Re: Aw: [Symfony2] AccessDeniedException = 500 internal server error?

2011-04-27 Thread Carl
Hmm, good point... lol It doesn't look like the exception is uncaught but it's super late and I may be missing something obvious. Either way, I'll give that a try. :) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] New form system questions

2011-04-27 Thread Vincent Lechemin
And also, how can I replace the previous preprocessData? -- Vincent -- 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" group. To post to this gro

[symfony-users] Aw: [Symfony2] AccessDeniedException = 500 internal server error?

2011-04-27 Thread Sebastian Göttschkes
Hi, I might be mistking, but isn't the 500 occuring because of the uncaught exception? In that case, you would simply need to catch the exception and than make sure the 403 error page is shown. On the other hand, there should be a way to decide which page is shown when the user doesn't have ac

[symfony-users] Clearing I18N cache

2011-04-27 Thread Rytis Daugirdas
Hello, Is there a way to clear the cache of certain (not all) I18N translation files? I have some dynamic I18N files which are updated by the application as required and afterwards the changes are not visible. Regards, Rytis -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] embedRelation & embedI18n inserts 2 records

2011-04-27 Thread Adam Frame
I have a multilanguage Gallery with the following schema (propel, using sfPropel15Plugin) [code] # Galleries pi_gallery: _attributes: phpName: Gallery isI18N: true i18nTable: pi_gallery_i18n _propel_behaviors: sortable: ~ id: ~ article_id: type: int

Re: Re : Re: Re : Re: [symfony-users] [sf2] Access to current route

2011-04-27 Thread Fabien Potencier
On 4/27/11 9:54 AM, winzou wrote: Unfortunatly there isn't the "requirements" parameter of the route in the request attributes. That's why I'm only fetching the name of the route from the request attributes, and then use it to retrieve the Route from the RouteCollection, to finaly reach the requ

[symfony-users] [Symfony2] MediaBundle - is it maintained and working?

2011-04-27 Thread Manne
Hi, I've been struggling to get the MediaBundle (https://github.com/sonata- project/MediaBundle) working. I've went through the installation instructions (raw version of https://github.com/sonata-project/MediaBundle/blob/master/Resources/doc/reference/installation.rst) and also added "db_driver: o

[symfony-users] [Symfony2] AccessDeniedException = 500 internal server error?

2011-04-27 Thread Carl
Hello, I'm currently working with the security component and I'm trying to find a way to render a specialized error message when a user doesn't have access to a certain part of my site. Right now, an AccessDeniedException triggers an internal server error. While this makes sense from a program

Re : Re: Re : Re: [symfony-users] [sf2] Access to current route

2011-04-27 Thread winzou
Unfortunatly there isn't the "requirements" parameter of the route in the request attributes. That's why I'm only fetching the name of the route from the request attributes, and then use it to retrieve the Route from the RouteCollection, to finaly reach the requirements via $route->getRequireme