[symfony-users] Re: ACL How to check if user can create object without object itself?

2011-05-18 Thread realmfoo
On 18 май, 10:23, Tim Nagel wrote: > You use a class OID. > > See CommentBundle's Acl > implementation:https://github.com/FriendsOfSymfony/CommentBundle/blob/master/Acl/Sec... Knownly using of invalid identifier leads to unnesessary sql query: SELECT a.ancestor_id FROM acl_object_identities

Re: [symfony-users] [v2.0.0BETA1] Array data and validation with Forms

2011-05-18 Thread Bernhard Schussek
Hi Benjamin, You can use the collection constraint for this. use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\Constraints\NotNull; $defaults = array('foo' => 'bar'); $form = $factory->create('form', $defaults, array( 'validation_cons

Re: [symfony-users] SF2 Forms - Cannot Store "0" in decimal field (0.0 works)

2011-05-18 Thread Bernhard Schussek
Hi Roger, Could you please create a ticket for this? https://github.com/symfony/symfony/issues Thanks, Bernhard -- 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 Group

Re: [symfony-users] About the order of autoloading

2011-05-18 Thread Christophe COEVOET
Le 18/05/2011 20:48, Javier Garcia a écrit : Hi, I'm getting this error: Declaration of PayPal::raiseError() should be compatible with that of PEAR::raiseError() These are PayPal::raiseError() and PEAR::raiseError() respectively: function&raiseError($message = null,

[symfony-users] About the order of autoloading

2011-05-18 Thread Javier Garcia
Hi, I'm getting this error: Declaration of PayPal::raiseError() should be compatible with that of PEAR::raiseError() These are PayPal::raiseError() and PEAR::raiseError() respectively: function &raiseError($message = null, $code = null, $mod

[symfony-users] Re: [SF2] Access Control Guidance

2011-05-18 Thread badllama77
I think you could filter the available pool of widgets/logs when you select. At the user level, where they can edit their logs, they would be owner of the entity in the acl. Any higher role bypasses the ownership check, or you could assign a user with these roles a class-scope permission. e.

[symfony-users] Consuming RSS feeds in a Symfony2 project?

2011-05-18 Thread Alex Gilbert
Hey folks! With symfony 1.4, I used sfFeed2Plugin quite a bit. With Symfony2, there is SF2-FeedImportBundle, but it doesn't look like it's received much attention. How do people like to handle RSS and Atom with Symfony2? -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] [SF2] Access Control Guidance

2011-05-18 Thread Paul Dugas
I'm working on an SF2 app (my first) and am looking for some guidance wrt. access controls. I don't think ACLs fit the requirements so I thought I'd ask around and see if someone has run into something similar and has some thoughts to share. The purpose of the application is to manage Log entitie

Re: [symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Christophe COEVOET
Le 18/05/2011 16:18, Valera a écrit : Unfortunately, no luck anyway... With the following config: request: class: Symfony\Component\HttpFoundation\Request templating.helper.assets: class: %templating.helper.assets.class% arguments: {type:service, id:@request, stri

Re: [symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Valera
Unfortunately, no luck anyway... With the following config: request: class: Symfony\Component\HttpFoundation\Request templating.helper.assets: class: %templating.helper.assets.class% arguments: {type:service, id:@request, strict:false} I have the following error:

Re: [symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Christophe COEVOET
Le 18/05/2011 16:06, Valera a écrit : my.service is just a service class defined like the following my.service: class: Acme\AcmeBundle\Service\MyService Removing the setter injection does not have any effect - the same exception is still shown. Ah sorry, it was for the request ser

Re: [symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Valera
my.service is just a service class defined like the following my.service: class: Acme\AcmeBundle\Service\MyService Removing the setter injection does not have any effect - the same exception is still shown. --- WBR, Valera On Wed, May 18, 2011 at 17:00, Christophe COEVOET wrote:

[symfony-users] SF2 Forms - Cannot Store "0" in decimal field (0.0 works)

2011-05-18 Thread Roger Webb
I'm using "money" field on a form and ran into a peculiar problem. If I enter in a plain zero, 0, I get no error or exception, but the field is not updated in the database. Any other integer value works, and entering 0.0 works, but the plain 0, not so much. My boss is not pleased. I can work ar

Re: [symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Christophe COEVOET
Le 18/05/2011 15:48, Valera a écrit : Hello, I'm overriding the "templating.helper.assets" class in my config.yml file and have to replicate the following constructor argument from templating_php.xml: Trying it the following way: templating.helper.assets: class: %templating.hel

[symfony-users] Rewriting a strict="false" for an argument from DI XML ito YAML

2011-05-18 Thread Valera
Hello, I'm overriding the "templating.helper.assets" class in my config.yml file and have to replicate the following constructor argument from templating_php.xml: Trying it the following way: templating.helper.assets: class: %templating.helper.assets.class% arguments: {type

Re: [symfony-users] Entities passed to the choice field must be managed

2011-05-18 Thread Marco Pivetta
$myEntity = $entityManager->merge($entity); //does the job :) Marco Pivetta @Ocramius http://marco-pivetta.com On 18 May 2011 15:25, umpirsky wrote: > I have a wizard of few steps. Each step manage separate doctrine > entity, save it in session and proceed to next

[symfony-users] Entities passed to the choice field must be managed

2011-05-18 Thread umpirsky
I have a wizard of few steps. Each step manage separate doctrine entity, save it in session and proceed to next step. On one step I have address data, and using EntityChoiceList to display countries from database in choice (select) field. Problem is, when I go back in my wizard, I load entity from

[symfony-users] Doctrine hydration for relations not working with object records

2011-05-18 Thread Mikael
(symfony 1.4.10 & doctrine 1.2) Hello, Given the following method, I use a foreach loop in the template to show students and their group ("Regroupements" here). I would like to avoid an extra query inside the loop for the group. EtudiantTable.class.php : === public function getE

Re: [symfony-users] deployment

2011-05-18 Thread Hamza Tlili
hi any ideas please for the first error i added a column slug manually in the table sfguard user but i have new error 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException Unknown record property / related component "permissions" on "sfGuardUser" if i refresh the page i'm logged in

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

2011-05-18 Thread Leo Jokinen
+1 since only interested of SF2 -Leo- From: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com] On Behalf Of Marco Pivetta Sent: 18. toukokuuta 2011 10:39 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony

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

2011-05-18 Thread Marco Pivetta
+1 as I am COMPLETELY not interested in Symfony 1.X and joined here to just follow some of the issues coming of sf2 :) Marco Pivetta @Ocramius http://marco-pivetta.com On 18 May 2011 09:21, Yanko Simeonoff wrote: > +1 > > > On 05/18/2011 10:12 AM, Zolzaya Erdeneb

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

2011-05-18 Thread Yanko Simeonoff
+1 On 05/18/2011 10:12 AM, Zolzaya Erdenebaatar wrote: +1 On Wed, May 18, 2011 at 3:11 AM, Alan Bem > wrote: +1 2011/5/18 realmfoo mailto:konstantin.leb...@gmail.com>> +1 -- If you want to report a vulnerability issue on symfony,

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

2011-05-18 Thread Zolzaya Erdenebaatar
+1 On Wed, May 18, 2011 at 3:11 AM, Alan Bem wrote: > +1 > > > 2011/5/18 realmfoo > >> +1 >> >> -- >> 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 "

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

2011-05-18 Thread Alan Bem
+1 2011/5/18 realmfoo > +1 > > -- > 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 group, send email to symfony-us