Re: [symfony-users] Event Listeners on ORM

2011-06-10 Thread Michael Holm
Hi, I dont know if there is any for the specific topic: But you can use this to setup the event: http://symfony.com/doc/current/book/internals/event_dispatcher.html And then just save the entity.. that should be pretty straight forward, do you have any specific problems then please write them

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-10 Thread Loïc Vernet
2011/6/10 Fabien Potencier fabien.potenc...@symfony-project.com On 6/9/11 10:17 PM, Chris Sedlmayr wrote: Hi all, I don't think we are against the idea of creating a Symfony2 specific group, but we must ensure that finding help in the right place is the main priority. I'm against

[symfony-users] [sf2][Beta4], serialize object with relations

2011-06-10 Thread Michael Holm
Hi, I have started to build a search function on my website.. My idea was to have a filter form class, give it an object which i then will serialize and then save it in a session.. and it works just perfect if i have no relationships in the object.. But when i want to make a relation to an

[symfony-users] preExecute controller with Listener and Session problem

2011-06-10 Thread Marvin31
Hello, I have a problem when I try to get a attribute after user click on logout: This is my code: I have two listener, one to listen core.controller class CheckControllerListener { public function onCoreController(FilterControllerEvent $event) { if

Re: [symfony-users] localized security (FOSUserBundle)

2011-06-10 Thread Christophe COEVOET
Le 09/06/2011 23:38, theinterned a écrit : Hi, I am trying to provided login at localized urls: /en/login, /fr/login etc. The locale seems to work okay for the login form, but the firewall seems to have issues. I am getting the following error: You must configure the check path to be handled

Re: [symfony-users] [Sf2] What form type can I use to display a list of checkbox, while checking some by default ?

2011-06-10 Thread Christophe COEVOET
Le 09/06/2011 17:57, djpate a écrit : Hello, I'm trying to display a form with a question and a list of answers and I would like to display all the answers as a list of checkboxes while checking the answers that are marked valid in the database. I've been looking into the EntityChoice type but

[symfony-users] [FOS UserBundle] Updating from Beta1 to Beta4

2011-06-10 Thread con
I'd like to update my project now to the latest beta4 (from beta1) and careful as I am, I'd like to do it step-by-step, which means as described in the UPDATE.md file, from one version to another. Does anyknow know the commit Id's of the FOS UserBundle that are intended to be 'stable' for each

[symfony-users] Re: [Beta4][Form] CollectionType and arrays

2011-06-10 Thread dbenjamin
In fact, that was easy :-) $builder-add('socialLinks', new SocialLinksType()); SocialLinksType : $builder -add('linkedIn', 'text') -add('viadeo', 'text') -add('twitter', 'text'); Works like a charm ! Benjamin. -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] [FOS UserBundle] Updating from Beta1 to Beta4

2011-06-10 Thread Christophe COEVOET
Le 10/06/2011 12:27, con a écrit : I'd like to update my project now to the latest beta4 (from beta1) and careful as I am, I'd like to do it step-by-step, which means as described in the UPDATE.md file, from one version to another. Does anyknow know the commit Id's of the FOS UserBundle that

Aw: Re: [symfony-users] [FOS UserBundle] Updating from Beta1 to Beta4

2011-06-10 Thread con
Thanks Stof, then I try to go directly to beta4 and hope that everything works out well -- 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

[symfony-users] [sf2] Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Hi, I'm gettin this error: Cannot import resource 'UserBundle/Resources/config/routing/ registration.xml' from '/home/me/Symfony/app/config/routing.yml'. This is my user_registration: resource: UserBundle/Resources/config/routing/registration.xml prefix: /register I've extracted the

Re: [symfony-users] [sf2] Trying to import resources (routing)

2011-06-10 Thread Michael Holm
Hi, I think you are missing an @ before you resource.. does it help? Best regards, Michael Holm On Fri, Jun 10, 2011 at 1:17 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm gettin this error: Cannot import resource 'UserBundle/Resources/config/routing/ registration.xml' from

Re: [symfony-users] [sf2] Trying to import resources (routing)

2011-06-10 Thread Christophe COEVOET
Le 10/06/2011 13:18, Michael Holm a écrit : Hi, I think you are missing an @ before you resource.. does it help? Best regards, Michael Holm On Fri, Jun 10, 2011 at 1:17 PM, Javier Garciatirengar...@gmail.com wrote: Hi, I'm gettin this error: Cannot import resource

[symfony-users] Re: [sf2] Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Thanks, but the error is the same. On Jun 10, 1:18 pm, Michael Holm ho...@hollo.dk wrote: Hi, I think you are missing an @ before you resource.. does it help? Best regards, Michael Holm On Fri, Jun 10, 2011 at 1:17 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm gettin

[symfony-users] Re: Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Thanks Cristophe, that worked! Don't you think you should correct the documentation (index.rst)? -- 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

[symfony-users] Re: Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Well, it's not bad documented: the line you mention it is written also in index.rst, but before this paragraph The login form and all the routes used to create a user and reset the password have to be available to unauthenticated users but using the same firewall as the pages you want to securize

Re: [symfony-users] Re: Trying to import resources (routing)

2011-06-10 Thread Christophe COEVOET
Le 10/06/2011 13:39, Javier Garcia a écrit : Well, it's not bad documented: the line you mention it is written also in index.rst, but before this paragraph The login form and all the routes used to create a user and reset the password have to be available to unauthenticated users but using the

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-10 Thread Georg
Hello, I am not yet using sf2. I am quite frustrated with the mailing list ATM. I used to read the mailing list along to help people when I knew something, learned a few tricks from answers by others, and had a place to get quick answers. Now on most mails I don't even understand the subject,

Re: [symfony-users] Re: - [beta3] Empty values on the page that exists in database

2011-06-10 Thread seven seven
Hi, Sorry to insist on this, but I don't really understand why the empty values are appearing on the page. Maybe the reason is that I don't use the fallback properly !? This is what I have in my config.yml file: framework: secret: %secret% charset: UTF-8

[symfony-users] Get sfUser object in sfWebRequest class

2011-06-10 Thread Imran
Hi symfonian, I have extended the sfWebRequest class. I was trying to get sfUser object in extended class (see below). class myWebRequest extends sfWebRequest { public function test() { echo $this-getUser(); } } But it is throwing errors. Is it possible to get sfUser object

[symfony-users] Re: localized security (FOSUserBundle)

2011-06-10 Thread theinterned
Awesome ... updating now! thanks! On Jun 10, 6:22 am, Christophe COEVOET s...@notk.org wrote: Le 09/06/2011 23:38, theinterned a crit : Hi, I am trying to provided login at localized urls: /en/login, /fr/login etc. The locale seems to work okay for the login form, but the

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-10 Thread Jeremiah Dodds
On Thu, Jun 9, 2011 at 4:20 PM, Chris Sedlmayr ch...@sedlmayr.co.uk wrote: I can't say that i've ever found groups to be an easy way to find information, and generally the posts I moderate seem to re-appear. People are struggling to find what they are looking for and I don't necessarily think

[symfony-users] [sf2] Missing Namespaces on some bundles after Update on Beta4

2011-06-10 Thread con
After (or while) updating my project to Beta4 I received a strange error: http://pastie.org/2048146 http://pastie.org/2048146then I hooked into the stacktrace and found on #8 ClassMetadataFactory::getAllMetadata() after making a print_r on $this-driver-getAllClassNames() that the classes of

[symfony-users] [symfony 2] app/cache and permissions

2011-06-10 Thread theinterned
Hi, I am wondering how you all are managing permissions on your symfony 2 projects. I seem to be constantly wrestling with permissions as I generate files in app/cache form the command line (as my user) and from the apache web server (as the apache user). Both of these users are generating files

[symfony-users] Re: localized security (FOSUserBundle)

2011-06-10 Thread theinterned
hmmm I ran ./bin/venders.php and I see this: Installing/Updating UserBundle HEAD is now at 122c7d5 Merge pull request #198 from oyerli/patch-1 Checking github, I see that indeed master is indeed at 122c7d582b22fd162ebcadf03c0baca8fecee52b But I am still getting the You must configure the

Re: [symfony-users] Re: localized security (FOSUserBundle)

2011-06-10 Thread Christophe COEVOET
Le 10/06/2011 18:46, theinterned a écrit : hmmm I ran ./bin/venders.php and I see this: Installing/Updating UserBundle HEAD is now at 122c7d5 Merge pull request #198 from oyerli/patch-1 Checking github, I see that indeed master is indeed at 122c7d582b22fd162ebcadf03c0baca8fecee52b But I am

[symfony-users] configuration grouping under common key?

2011-06-10 Thread Problematic
I'm developing several bundles under a common top-level namespace (right now, Problematic). Is there any way to group them together in my config.yml, so that instead of: problematic_foo: # some configuration problematic_bar: # some configuration I can do something like: problematic:

[symfony-users] Re: app/cache and permissions

2011-06-10 Thread Roger Webb
You can have the user you log in as and the apache user be in the same group. On Jun 10, 11:22 am, theinterned ned...@gmail.com wrote: Hi, I am wondering how you all are managing permissions on your symfony 2 projects. I seem to be constantly wrestling with permissions as I generate files

[symfony-users] Re: localized security (FOSUserBundle)

2011-06-10 Thread theinterned
Ah great! Thanks so much. This looks like the commit here: https://github.com/symfony/symfony/commit/882a8e3f09c602a6f0ed3b5bd20e8d4688331500 I'm going to merge that into my project. On Jun 10, 1:28 pm, Christophe COEVOET s...@notk.org wrote: Le 10/06/2011 18:46, theinterned a crit :

[symfony-users] [symfony2] file permissions, difference between app/console and apache

2011-06-10 Thread Ruben de Vries
I'm struggling a bit to get my linux file permissions setup in a manner where I can both use the CLI (app/console) and avoid issues with apache not being able to access files. The most often occuring problem is (ofcourse) the cache directory; If I do `app/console cache:clear` WITHOUTH

[symfony-users] Re: [symfony 2] app/cache and permissions

2011-06-10 Thread carlosz
On Friday, June 10, 2011 4:22:35 PM UTC, theinterned wrote: Hi, I am wondering how you all are managing permissions on your symfony 2 projects. I seem to be constantly wrestling with permissions as I generate files in app/cache form the command line (as my user) and from the apache

[symfony-users] ReSTful canvas symfony application

2011-06-10 Thread abernier
Hi, As you may know, in order to pass user's information(signed_request) to your app, Facebook access canvas(ie: iframe) applications by sending them a POST request. This mechanism is explained here: http://developers.facebook.com/docs/guides/canvas/#auth In order to keep ReSTful, what would the

[symfony-users] [symfony2] [beta4] ScopeWideningInjectionException in prod environment using php templates

2011-06-10 Thread pzwosta
Hi, with update to Beta 4 I get this Exception - only in prod environment (with debug set to true on creating AppKernel). Without debug=true the server returns an empty page. Scope Widening Injection detected: The definition assetic.helper.static references the service

Re: [symfony-users] [symfony2] [beta4] ScopeWideningInjectionException in prod environment using php templates

2011-06-10 Thread Kris Wallsmith
Yes, please submit a pull request to fix this. Thanks, Kris On Friday, June 10, 2011 at 12:40 PM, pzwosta wrote: Hi, with update to Beta 4 I get this Exception - only in prod environment (with debug set to true on creating AppKernel). Without debug=true the server returns an empty page.

Re: [symfony-users] [sf2][Beta4], serialize object with relations

2011-06-10 Thread oscar balladares
It is not possible due to doctrine's proxies workflow. I had a discusion like about 30 responses within this mailing list looking for the same answer, without a practical success. Doctrine's official docs tells you can't serialize entities (when they are proxies). What I implemented is a

Re: [symfony-users] [sf2][Beta4], serialize object with relations

2011-06-10 Thread oscar balladares
Also, the To Be Stored entity must implements Serializable interface, and its methods: serialize, unserialize. If you are unfamiliar to it, this is an example: class Producto implements \Serializable { $id; $nombre; $descripcion; $cantidad; $categoria;

Re: [symfony-users] [symfony2] file permissions, difference between app/console and apache

2011-06-10 Thread oscar balladares
This is a common scenario in my case. The only advice I give you is to avoid working with other user than your regular user (don't work with the root account) if not, this will lead such file/dir permission issues. This is the thing. When you request a web url, i.e your app one, apache will

Re: [symfony-users] Re: [symfony 2] app/cache and permissions

2011-06-10 Thread ken
I change the umask. # add your user to www-data and vise versa sudo usermod -a -G www-data myusername sudo usermod -a -G myusername www-data # override umask in ~/.bashrc and /etc/init.d/apache2 umask 002 #restart sudo /etc/init.d/apache2 restart -- If you want to report a vulnerability

Re: [symfony-users] Re: [symfony 2] app/cache and permissions

2011-06-10 Thread carlosz
El sábado 11 de junio de 2011 05:14:37 UTC, Matador escribió: Hi. This is for sure not the best answer, but it should work less painful than yours, Instead of: rm -rf app/cache mkdir app/cache chmod -R +w app/cache You can: rm -rf app/cache/* This will avoid app/cache from