Re: [symfony-users] Performance

2011-05-20 Thread Gareth McCumskey
There are a few things you can look for: 1. make sure you run the application over the production environment and not the dev or testing environment. 2. Do a clear cache to force the application rebuild the cache. If it cannot access old cache entries it just wont use cache which can slow things d

[symfony-users] Symfony2 [Form] date usage with datepicker

2011-05-20 Thread s.rohweder
Hi, I´m tying to get the date field from the new Formsystem to work together with a JS Datepicker, the Datepicker is Use only fills one input field. But the widget renders also when input = text every time 3 fields for Day month and Year. Is there a possibility to render only one input field for

[symfony-users] Re: PR8: Custom roles for access control

2011-05-20 Thread smontes
Hi georg, Could you let me see the code, because I implemented the User and the Role class but this does not work fine. I think that the problem is caused by roles because I put the role IS_AUTHENTICATED_ANONYMOUSLY, this one works fine. My application does not return any exception but this one re

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

2011-05-20 Thread Paul Dugas
One requirement I didn't mention is recording the user who created the logs. Given that I'll have this info as a member of the log entity, does it make sense to use an ACL? Seems redundant to me. On Wed, May 18, 2011 at 1:06 PM, badllama77 wrote: > I think you could filter the available pool o

[symfony-users] Presenting of SF2 - Guidance on Use of Logo and Content, etc.

2011-05-20 Thread Roger Webb
Hello Everyone, In a few weeks I will be giving a presentation on Symfony2 to a local group of web developers (comorichweb). I have also submitted an abstract to Strange Loop 2011 (a conference in St. Louis in September). I'm very much looking forward to sharing my (overwhelmingly positive) expe

Re: [symfony-users] Presenting of SF2 - Guidance on Use of Logo and Content, etc.

2011-05-20 Thread Christophe COEVOET
Le 20/05/2011 15:42, Roger Webb a écrit : Hello Everyone, In a few weeks I will be giving a presentation on Symfony2 to a local group of web developers (comorichweb). I have also submitted an abstract to Strange Loop 2011 (a conference in St. Louis in September). I'm very much looking forward

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

2011-05-20 Thread realmfoo
There is "fictional" object with identity "class" only to call insertClassAce and check if user can create comments, what is also based on class ace. So the question is how to avoid of using fictional object and work with class aces. -- If you want to report a vulnerability issue on symfony, plea

[symfony-users] Symfony blog quotes

2011-05-20 Thread Youx
Hi everybody, It's a time that the "symfony blog quotes" feed is empty on symfony.com http://symfony.com/community Does that feed moved to another place ? Thanks Loïc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this m

[symfony-users] Symfony2 localized routes

2011-05-20 Thread Zap
Is it possible to define localized "multiroutes" with same route name? Example: culture = cs route = /kontakt culture = en route = /contact Solution could be to specify "routing.yml" with same routes names for each desired culture. But here I am not sure, how it is possible to load correct yml

[symfony-users] ORM Query inside a Form buildForm function

2011-05-20 Thread arnobeck.sdv
Hello, I'd like to make a doctrine query inside the buildForm function of my Form. How can I do that ? This doesn't work : $this->container->get('doctrine.orm.entity_manager'); Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

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

2011-05-20 Thread [BLZ] 梁振警
+1 I'm have no interest in sf 1.x at all, but I love the sf2 way. 2011/5/18 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: symf

[symfony-users] Re: ORM Query inside a Form buildForm function

2011-05-20 Thread dustin10
You need to inject the EntityManager into the constructor of your form type class. // in controller $em = $this->get('doctrine')->getEntityManager(); $form = $this->get('form.factory')->create(new MyFormType($em)); // form type class class MyFormType extends AbstractType { private $em;

[symfony-users] Re: [sf2] Login Event

2011-05-20 Thread dustin10
You probably want to listen for the onSecurityInteractiveLogin event. Dustin -- 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: Any chance of creating a new Google group for Symfony2 only?

2011-05-20 Thread mepk
+1 marcelo On 18 mayo, 05:05, Leo Jokinen wrote: > +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: [symfo

[symfony-users] Re: Testing Symfony2 Doctrine2 Entities against Database

2011-05-20 Thread defrag
Thank you! That solved the issue: Im pasting setUp code if anyone would need this: public $entityManager = null; public function setUp() { $config = new \Doctrine\ORM\Configuration(); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache \ArrayCache); $config->setQuery

[symfony-users] is convenient to use symfony with fasCgi ?

2011-05-20 Thread aleguille
is convenient to use symfony with fasCgi Or apache_mod ? -- 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 emai

Re: [symfony-users] Is there any way to retrieve UserId from current user in Symfony 2?

2011-05-20 Thread [BLZ] 梁振警
then the in_memory provider seems useless to me, what a pity 2011/5/13 Christophe COEVOET : > Le 13/05/2011 11:29, [BLZ]梁振警 a écrit : > > I'm using the build-in in_memory provider > > The in_memory provider does not use the database. And the user coming from > it don't have an id. the are ide

[symfony-users] WDT bug in login form

2011-05-20 Thread NOP-erator
I secured my application with a login form as explained in the docs. After trying to extend the login.html.twig with a layout, the whole view appeared twice within this layout while in app_dev. In the firebug console I can see two GET requests: 1. http://toolbox/app_dev.php/login | 302 Found 315ms

[symfony-users] Re: [sf2] Access service container from event.

2011-05-20 Thread dustin10
You must inject the services you need into your service. I use constructor injection. Here is some code: This example listener has the router and the security context injected: http://pastebin.com/m1MLqWQy Here is the service definition: http://pastebin.com/PcS4rm41 Hope that helps. Dustin D

[symfony-users] Fatal Error Class ....\Controller\DateTime' not found in Controller

2011-05-20 Thread Géometricus
Hi, I aimed to use a simple php DateTime object within a controller but I've got the following error : Fatal Error : Class .\Bundle\Controller\DateTime not found in . The code ... as simple as : $d = new DateTime(); die($date->format("Y-m-d H:i:s")); is working on a simple

[symfony-users] Re: Form spread over multiple pages (wizard) ?

2011-05-20 Thread dustin10
Here is how i implemented a two-step form for a client request for a site that I am working on right now without using javascript. Basically in step one the client fills out their contact information and then in step two they select what market they are in and give the address of their business.

[symfony-users] Swapping a controller in an event listener

2011-05-20 Thread pogotc
I'm building a site that will work across multiple domains using one code base, to keep things flexible I'd like to be able to create site specific controllers that extends the default ones. From reading the documentation it appears using the onCoreController listener is the best way to do this. Th

[symfony-users] Re: Symfony2 (Beta 1 ?!) and FOSUserBundle

2011-05-20 Thread riker09
On May 19, 12:49 pm, Christophe COEVOET wrote: > No tables are created for the FOSUserBundle as it provides only some > mapped superclass. You need to implement the entity. Read the doc of the > bundle:https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/... I'm trying, I really a

[symfony-users] How to removed backend.php pure htaccess

2011-05-20 Thread hayden
This is not a question. This is a post to help others where I have yet to find solutions doing google searches myself. http://ketuv.im/a/using-mod_rewrite-to-symfony-backend/ I have yet to find any posts that have figured out how to do this exactly the way I wanted so I want to get this out ther

Re: [symfony-users] I can't use entity's annotation mapping with entity_managers.

2011-05-20 Thread Gaku Furukawa
Hi Christophe, Thank you for your advice. I see.. It works correctly ! Best Gaku On Wed, May 18, 2011 at 4:59 AM, Christophe COEVOET wrote: > Le 16/05/2011 23:47, Gaku Furukawa a écrit : > > Hi there, > > I used Symfony2 and Doctrine2. > But I can't use entity's annotation mapping with entity_

[symfony-users] Doctrine doesn't free up memory after transaction commit

2011-05-20 Thread Mohd Shakir Zakaria
I keep on getting this error when running one of my scripts; PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 71 bytes) in ... lib/symfony-1.4.11/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php on line 246, ... The following

[symfony-users] OnteToMany error

2011-05-20 Thread arnobeck.sdv
Hello, I have this in a table : Sdv\MonitoringBundle\Entity\User: type: entity table: user fields: idUser: id: true type: bigint column: id_user generator: strategy: IDENTITY [...] oneToMany: onglets: targetEntity: OngletUser mappedBy: i

Re: [symfony-users] Fatal Error Class ....\Controller\DateTime' not found in Controller

2011-05-20 Thread Marco Pivetta
You just have to use it with the global namespace! Instead of *$d = new DateTime();* use *$d = new \DateTime();* //please note the initial '\', which means we're using a class from the global namespace :) Marco Pivetta @Ocramius http://marco-pivetta.com On 20 M

Re: [symfony-users] Re: Symfony2 (Beta 1 ?!) and FOSUserBundle

2011-05-20 Thread Christophe COEVOET
Le 20/05/2011 08:40, riker09 a écrit : On May 19, 12:49 pm, Christophe COEVOET wrote: No tables are created for the FOSUserBundle as it provides only some mapped superclass. You need to implement the entity. Read the doc of the bundle:https://github.com/FriendsOfSymfony/UserBundle/blob/master/R

Re: [symfony-users] Is there any way to retrieve UserId from current user in Symfony 2?

2011-05-20 Thread Christophe COEVOET
Le 18/05/2011 14:24, [BLZ]梁振警 a écrit : then the in_memory provider seems useless to me, what a pity the purpose of the in_memory provider is precisely the cases where you don't store your users in a database. If you store them in the database, use the Entity provider: http://symfony.com/d

[symfony-users] Re: Symfony2 [Form] date usage with datepicker

2011-05-20 Thread s.rohweder
Thanx a lot, but at the moment there seem something broken, as I get an error. Uncaught exception 'InvalidArgumentException' with message 'There is no extension able to load the configuration for "form" So it seems to me that there is a not working master at the moment, I will try later again.

Re: [symfony-users] Re: Symfony2 [Form] date usage with datepicker

2011-05-20 Thread Christophe COEVOET
Le 20/05/2011 17:00, s.rohweder a écrit : Thanx a lot, but at the moment there seem something broken, as I get an error. Uncaught exception 'InvalidArgumentException' with message 'There is no extension able to load the configuration for "form" So it seems to me that there is a not working ma

Re: [symfony-users] Re: Testing Symfony2 Doctrine2 Entities against Database

2011-05-20 Thread oscar balladares
Thanks so much. I was looking for this! 2011/5/18 defrag > Thank you! That solved the issue: Im pasting setUp code if anyone > would need this: > > public $entityManager = null; > public function setUp() >{ > $config = new \Doctrine\ORM\Configuration(); > $config->setMetadataCa

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

2011-05-20 Thread badllama77
I originally had the same issue, I was trying to figure out how to retrieve the user or objects linked using the acl. It can be done, messily, but after some quiet contemplation and some posting back and forth on here I determined not to do it. So I decided to try to only use the ACL when I ne

Re: [symfony-users] deployment

2011-05-20 Thread Saad Tazi
Hi Hamza, It seems like you forget to push your model class files (/lib/models, ...). Also, did you check your DBs (they are probably different): did you recreate your DB locally (using Doctrine commands) but forget to propagate the DB changes (manually or better through doctrine migration...) an

[symfony-users] Re: I need your opinion

2011-05-20 Thread Saad Tazi
... or maybe the AdminBundle? https://github.com/sonata-project/AdminBundle -- 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 th