[symfony-users] Re: Symfony1 + Doctrine2?

2011-06-16 Thread PaulK
Hi Russ, Sorry for the late reply and thanks for your response. We've been giving this some thought and are not going ahead with it. The thing we want to achieve is a shared model layer, but the requirements for the backend and frontend apps are quite different, so there isn't much logic

Re: [symfony-users] [Doctrine2] Delete query + JOIN. (How to translate this SQL query into DQL)

2011-06-16 Thread Gediminas Morkevicius
Hi, read a manual with MEMBER OF function, I think in your case it should fit On Thu, Jun 16, 2011 at 6:04 AM, oscar balladares liebegr...@gmail.comwrote: Hi everybody! This might go in the Doctrine's mailing list, but knowing you all S2 people are working with Doctrine 2, I'm feeling lucky

[symfony-users] Re: Cascade: persist not working with Forms

2011-06-16 Thread Stephan Petzl
It's a little bit offtopic, but anyhow: I don't get cascade={persist} working. it has no effect at all. i use the annotation on the owning side of the m:n relation. Any ideas? BR Stephan On Jun 13, 12:18 pm, Ruben de Vries rubensay...@gmail.com wrote: I've created a small demobundle with the

[symfony-users] [sf2] [beta4] options to forms

2011-06-16 Thread Michael Holm
Hi, I have a question about how do i get options to the form, the right way? I can just parse the options to the constructor of my form class, and extend the options array in the constructor in the form class.. but i dont know if that can have any downsides? Hope someone can help me? Best

[symfony-users] Re: Where is createFormBuilder()?

2011-06-16 Thread Haulyn Jason
now I changed my code to this, it works now. $form = $this-get('form.factory')-createBuilder('form',$account) -add('username', 'text') -add(password,password) -getForm(); Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread spider
I tried this syntax as well but I cannot make it work. Maybe I made something wrong? my app/config/config.yml. 35: doctrine: 36: dbal: 43: types: 44: enum: Acme\TestBundle\Types\EnumType my src/Acme/TestBundle/Types/EnumType.php http://pastebin.com/06buTkYE When I

Re: [symfony-users] Re: [sf2] [FOSUserBundle] How to override the user_provider

2011-06-16 Thread Christophe COEVOET
Le 16/06/2011 10:10, winzou a écrit : Ok I've define my own service. It works well, as expected. But can you have a look: https://github.com/winzou/AssoManager/commit/b45729baaa7873cb740ab07a8813483b257cac92 It's a lot of code just to override my findUserByUsername($username) method. It

[symfony-users] Aw: [symfony2] datetime widget single_text format

2011-06-16 Thread ibrows_symfony
Hm, the format value is only available for the date widget. So this can not be used either. -- 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

Re: [symfony-users] Re: [sf2] [FOSUserBundle] How to override the user_provider

2011-06-16 Thread winzou
I extend the UserManager (which implements UserProviderInterface) because I don't want to write a new one from scratch, as it perfectly fits my needs. I may have been not so clear: my point is to use the UserManager of FOS, but with just a little modification of the findUserByUsername() method.

Re: [symfony-users] Re: [sf2] [FOSUserBundle] How to override the user_provider

2011-06-16 Thread Alexandre Bacco
You're right I was. And UserProviderInterface is easier than I thought, I will implement it myself. Thanks! -- Sent with my HTC. On Jun 16, 2011 6:06 PM, Christophe COEVOET s...@notk.org wrote: -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Symfony and Facebook Hip Hop

2011-06-16 Thread Anderson Dadario
I also would like to know XD -- 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

Re: [symfony-users] Re: Symfony and Facebook Hip Hop

2011-06-16 Thread Thomas Rabaix
Before going further into hip hop, you might want to have a look to reverse proxy cache solution, like varnish. This will help a lot and it is very easy to setup With a simple varnish configuration you can serve up to 5000req/s. On Thu, Jun 16, 2011 at 2:12 PM, Anderson Dadario

[symfony-users] Re: datetime widget single_text format

2011-06-16 Thread Roger Webb
It's expecting something like this: $builder-add('next_contact_date', 'date', array('input' = 'datetime', 'widget' = 'single_text', 'format' = \IntlDateFormatter::SHORT)); Note this: \IntlDateFormatter::SHORT This is a PHP thing. The docs:

Re: [symfony-users] [sf2] [beta4] options to forms

2011-06-16 Thread Luis Cordova
Hi Mike, can you show what you are trying to do with some code? I am eager to see, thanks Luis On Thu, Jun 16, 2011 at 4:00 AM, Michael Holm ho...@hollo.dk wrote: Hi, I have a question about how do i get options to the form, the right way? I can just parse the options to the constructor of

[symfony-users] Re: Symfony and Facebook Hip Hop

2011-06-16 Thread Tristan
Someone asked a similar question during the sfLive. Fabien answer that symfony will not support HipHop as it does not speed-up a lot the website. I may disagree with that but as Thomas said, you can start with Varnish and you'll gain a lot of speed before thinking of HipHop -- If you want to

Re: [symfony-users] Re: Symfony and Facebook Hip Hop

2011-06-16 Thread Marco Pivetta
Other things you can do is optimizing autoloading of your classes and set apc.stat=0 in your config (supposing you're using APC). That should give you some decent speedup, and does not add all the troubles that HipHop could cause... I really suggest you to stay away from it and to try ANYTHING

[symfony-users] [Symfony 2] File upload and mime type detection issues

2011-06-16 Thread Gustavo Adrian
Hi all, I wanted to ask you guys if you've found a definitive way to handle mime type detection issues. I recently implemented file upload handling in my app with Symfony 2 and I'm having problems detecting, for example, .docx files. When I upload a .docx, it detects a mime type of

Re: [symfony-users] Re: link to images in css file with assetic

2011-06-16 Thread Kris Wallsmith
Including a stylesheet from a bundle that references an image that is also in the bundle is not supported at this time. The image in the bundle will not be moved to the web directory and will therefore not be available to the stylesheet there. I recommend you move your stylesheets and images

[symfony-users] Any best practices for service naming?

2011-06-16 Thread keymaster
I've seen different ways of naming services. Fos_user: fos_user.registration.form.builder fos_user.mailer.default Sonata: sonata.admin.form.type.admin sonata.admin.pool sonata.admin.route_loader In general they all reasonably seem to start with the namespace, then some kind of section within

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread badllama77
I recently posted an issue that may be related to this. When your using any of the doctrine tools that use the schema tool any custom types will fail. There isn't a call to registerDoctrineTypeMapping. So the type gets registered with the orm but not with the dbal. I changed the

Re: [symfony-users] Any best practices for service naming?

2011-06-16 Thread Christophe COEVOET
Le 16/06/2011 18:08, keymaster a écrit : I've seen different ways of naming services. Fos_user: fos_user.registration.form.builder fos_user.mailer.default Sonata: sonata.admin.form.type.admin sonata.admin.pool sonata.admin.route_loader In general they all reasonably seem to start with the

[symfony-users] [Symfony2] Forms Entities with Association Mappings

2011-06-16 Thread Aaron DM
Hello, I was wondering how I would accomplish this. I want to create a single FormType for the entity User with has an association mapping Address (OneToOne). How exactly do I create the form fields for the information in the associated Address Entity? Example entities:

[symfony-users] Re: database row level permissions

2011-06-16 Thread Problematic
Are you talking about the ACL system? It supports class and object permissions. http://symfony.com/doc/current/cookbook/security/acl.html -- 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

[symfony-users] [Symfony 2] FOSUserBundle use email address as username

2011-06-16 Thread theinterned
Hi I'm wondering about the feasibility of dropping the username and using the email address as the username instead in FOSUserBundle. Is this supported by the bundle? Has anyone done this themselves? Thanks, Ned -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] [Doctrine2] Delete query + JOIN. (How to translate this SQL query into DQL)

2011-06-16 Thread oscar balladares
Thanks, I'll try to digg into it. 2011/6/16 Gediminas Morkevicius gediminas.morkevic...@gmail.com Hi, read a manual with MEMBER OF function, I think in your case it should fit On Thu, Jun 16, 2011 at 6:04 AM, oscar balladares liebegr...@gmail.comwrote: Hi everybody! This might go in the

[symfony-users] Setting up a firewall with http_basic and stateless security

2011-06-16 Thread Apostolos Karakoussis
I am having trouble setting up a firewall. I am using beta4 so far. Here is my security.yml: [code] security: providers: user_db: entity: { class: mytest\TestBundle\Entity\Account, property: email } encoders: mytest\TestBundle\Entity\Account: plaintext

[symfony-users] [Symfony2] ComwaysFormExtraBundle is no more?

2011-06-16 Thread Carl
I recently started using the excellent ComwaysFormExtraBundle and discovered today after coming back from a short vacation that it's apparently been deleted from Github. Does anyone know if there are plans to add some of the form extensions found in this bundle to another bundle or if

[symfony-users] Re: [Symfony2] ComwaysFormExtraBundle is no more?

2011-06-16 Thread Carl
Oops. It looks like it's just moved and will probably be getting renamed... https://github.com/simplethings/FormExtraBundle Ok, done panicking now. ;) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message