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

2011-06-17 Thread Christophe COEVOET
Le 17/06/2011 02:16, Apostolos Karakoussis a écrit : 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:

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

2011-06-17 Thread Καρακούσης Απόστολος
On Jun 17, 2011, at 10:20 AM, Christophe COEVOET wrote: Le 17/06/2011 02:16, Apostolos Karakoussis a écrit : I am having trouble setting up a firewall. I am using beta4 so far. which basically tells to use hashing with sha1, without encoding as base64 on the database. Since the whole

[symfony-users] Code Organization with 3rd party bundles

2011-06-17 Thread keymaster
There seems to be different practices: SonataAdminBundle / src / Sonata / AdminBundle KnpLab's menu bundle: / src / Knplabs / Bundle / MenuBundle FOSUserBundle: / vendor / bundles / FOS / UserBundle I would have thought all bundles meant for distribution should go into vendor/bundles, and

[symfony-users] Re: datetime widget single_text format

2011-06-17 Thread ibrows_symfony
Thank you for your answer. I updated today to Beta5 and now it works without changing anything. Andreas -- 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] [beta5] routing problem, problem with generated file ../../app/cache/dev/appdevUrlMatcher.php

2011-06-17 Thread Michael Holm
Hi, I have a major problem with my routings, i've just upgraded to Symfony2 Beta5, and suddenly something just didnt work no more.. I have deleted my cache, just in case of that i havent checked.. Then i saw the error: 1. in kernel.root_dir/cache/dev/appdevUrlMatcher.php at line 406 - +

[symfony-users] [Symfony2] AdminBundle - How to set the translationDomain for SonataUserBundle : UserAdmin ?

2011-06-17 Thread seven seven
Hi everyone, I am using Sonata UserBundle to manage users and groups in AdminBundle. My question is how to set the translationDomain to what I need in order to translations. I was thinking if there's a way to set this from my app config ... is this possible ? I know from the docs about placing

Re: [symfony-users] [beta5] routing problem, problem with generated file ../../app/cache/dev/appdevUrlMatcher.php

2011-06-17 Thread Michael Holm
Hi, Thanks fabian.. for peoples information it will be fixed by this patch, and will properly come in the next release: https://github.com/symfony/symfony/commit/c536797cc9ee81986210cbcfbaf6c8337dfdad9e Best regards, Michael Holm On Fri, Jun 17, 2011 at 1:55 PM, Fabien Potencier

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

2011-06-17 Thread Gustavo Adrian
Is someone having this issue? 2011/6/16 Gustavo Adrian comfortablynum...@gmail.com 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,

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

2011-06-17 Thread Michael Holm
Hi, Sure.. im trying to find a way to make a form with a collection of models, i mean: i have the models: - attributes - filters - filter_attributes now what i want is a form with all the filter attributes i can change at once.. that i no problem, i can just make a form on the filter, and then

[symfony-users] Re: get object for edit the form

2011-06-17 Thread Mohd Imran
Hey Gantulga, Thanks for reply. I don't want to pass the id value in URL. I have a form which contains the id value in hidden field. I can get the post id values like this way: $params = $request-getParameter('form_name'); $id = $params['id']; But i am not comfortable with hard-coding the

[symfony-users] symfony2 - how to do s.th. after a users has logged in?

2011-06-17 Thread Flo
Hi, what I'm trying to achieve is, that after a user has successfully logged in, set the locale of the session. I made a listener for onSecurityInteractiveLogin, there I have access to the user object, but I can't access the session container (can I?) The login_check action is never really

[symfony-users] Re: Forms Entities with Association Mappings

2011-06-17 Thread Grégoire
I think you should create a separate form for Address entity and embed it in the user form, see http://symfony.com/doc/current/book/forms.html#embedded-forms On 16 juin, 19:31, Aaron DM amai...@gmail.com wrote: Hello, I was wondering how I would accomplish this. I want to create a single

[symfony-users] form from self-referencing object won't build

2011-06-17 Thread Bart
Hi everyone. I'm having a rather odd problem which I suspect is either a bug or more likely I'm trying to do things the wrong way.I'd appreciate if you can shed a little light on the proper way to address this. Let me describe the issue. We have a container with the following ORM definition:

[symfony-users] Re: Get form field value before bind

2011-06-17 Thread Mohd Imran
Hi Gantulga, Thanks again. I have two criteria for fetch the object. e.g- where username='xxx' and id ='3'; I couldn't understand the sf_format in the routing rule / comment/:name/:date.:sf_format How $this-getRoute()-getObject() return an object with form's posts values? I don't have

[symfony-users][beta4] How to generate a link to a file (zip/doc...) ?

2011-06-17 Thread Benjamin RICHARD
Hi, i must do a link to a file because it must be downloadable. I think that there is too way to do it : 1st) directly in my Twig template. But in that case, how to generate the url to the file that is stored in my Bundle : myBundle/Resources/public/files/myFile.zip ? 2nd) i can use a new

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

2011-06-17 Thread David Mann
Hey mate, Give this a shot, don't have ability to test right now though sorry. delete VendorBundle:Photo p, bp LEFT JOIN p.bedrooms bp LEFT JOIN bp.bedroom b where b.id http://b.id = 13 The following queries are valid though |if user chose to delete related rows as well, then: DELETE p,

[symfony-users] Mapping relationnal fields with sub-object property

2011-06-17 Thread Grégoire
Hi, I was wondering if there is a native way to map relationnal fields to entity's sub'object properties. For example, with an entity Customer, can I deal with $customer- address, where address is an instance of Address, and map the properties of my address directly with columns of my database,

Re: [symfony-users] WDT bug in login form

2011-06-17 Thread Christophe Bord
I had the same problem as you, and solved it thanks to Christophe COEVET response, today. As he said to me You are requiring the authentication for the url of the Ajax call done to load the web debug toolbar In fact, the route _wdt defined in routing_dev.yml is covered by some of your

Re: [symfony-users] Required fields on create/update

2011-06-17 Thread Matías Roldán
Something like this: if($this-isNew()) { $this-validatorSchema['password']-setOption(required, true); } else { $this-validatorSchema['password']-setOption(required, true); } Or in one line: $this-validatorSchema['password']-setOption(required, ($this-isNew()); How I can make required

[symfony-users] Routing problem

2011-06-17 Thread Noussan goumbetti
Hi Everybody, I develop a project on symfony and I need to associate a module : botte to a subdomain adress botte.domain.com, somebody know how can I do please ? thank you, have a good day. -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] [sf2][beta4] - Security, authenticating with forms - Authentication form appears double

2011-06-17 Thread Christophe Bord
That was it. Thanks, Christophe. 2011/6/15 Christophe COEVOET s...@notk.org Le 14/06/2011 16:30, Christophe Bord a écrit : Hi all, I was testing the security section from the current documentation but i ran into some trouble. http://symfony.com/doc/current/book/security.html

[symfony-users] Re: File upload and mime type detection issues

2011-06-17 Thread matteosister
yes same problem here. I'm on ubuntu too. I' think it's a problem bound to proprietary file types. Take a look at /etc/mime.types for mime supported by your system. For me the problem comes with .doc documents. It says that it is a application/vnd.ms-office instead of ms-word This is why

[symfony-users] get form reference in post validator class

2011-06-17 Thread Mohd Imran
Hi folks Is there any way to get the form reference object in custom post validator class? class myPostValidator extends sfValidatorBase { public function configure($options = array(), $messages = array()) { } protected function doClean($values) { // How to get form object here ?

Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread waldo2188
HOURA ! I've fix the problem ! Here is my entire Class namespace X\ModelBundle\Tests\DataFixtures; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use X\ModelBundle\Entity\BAdresseEnlevement; use X\ModelBundle\DataFixtures\ORM\Load01PurgeData; class Load01PurgeDataTest extends

[symfony-users] Re: [symfony2] Errors bubble to the main form

2011-06-17 Thread yethee
You are using the latest version of Symfony? Over the last week was some commits with fixes mapping of errors -- 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: datetime widget single_text format

2011-06-17 Thread Marcelo Prizmic
I use $builder-add('fecha_creacion', 'birthday', array('widget' = 'choice', 'pattern'='dd/MM/', 'format'=3)); but you have to fix symfony/component/form/extension/core/type/datetype.php in line 96 intead of $pattern =

Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread waldo2188
Thanks for your response, but, *$this* hasn't method named *getService* . .PHP Fatal error: Call to undefined method BOD\ModelBundle\Tests\DataFixtures\Load01PurgeDataTest::getService() in /home/xxxwww/xxx/src/BOD/ModelBundle/Tests/DataFixtures/ORM/Load01PurgeDataTest.php Maybe we don't use

[symfony-users] Re: Custom Authentication Provider

2011-06-17 Thread robertoNR
Hi Stefan, thank you very much for your reply. Have you registered your custom AuthenticationProvider as service? If yes, with which tag key? Regards, Roberto. On Jun 9, 10:02 am, Stefan Reek stefanr...@gmail.com wrote: I have been working on a custom authentication manager as well. To figure

Re: [symfony-users] Symfony2 doctrine returns not UTF-8 from UTF-8 table

2011-06-17 Thread Marco Pivetta
Could you please check the encoding of your source files? Also check the content-encoding headers sent by your web server :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com 2011/6/16 Lajos Cseppentő cseppen...@gmail.com Hello everybody, My problem is the next: I am new

[symfony-users] Re: Forms Entities with Association Mappings

2011-06-17 Thread Aaron DM
Whoa that's it! Thanks, not sure how I missed that - I even looked over the documentation :S -- 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] symfony2 - how to do s.th. after a users has logged in?

2011-06-17 Thread Michael Holm
Hi, Yes you can.. just put it in as an argument: arguments: [@session] then get the session class in the constructor of the class.. http://symfony.com/doc/current/book/service_container.html Best regards, Michael Holm On Thu, Jun 16, 2011 at 8:33 PM, Flo fpfeif...@gmail.com wrote: Hi,

Re: [symfony-users][beta4] in twig, asset css files fails with app.php but works with app_dev.php

2011-06-17 Thread Christophe COEVOET
Le 17/06/2011 15:29, Benjamin RICHARD a écrit : Hi, in my template i do this : {% stylesheets '@MyBundle/Resources/public/css/main.css' output='css/main.css' %} link href={{ asset_url }} type=text/css rel=stylesheet / {% endstylesheets %} when i access to the controller in dev mode, it

Re: [symfony-users] Re: File upload and mime type detection issues

2011-06-17 Thread Gustavo Adrian
Thanks for the tip! Yes, this topic is a real headache. I had this type of issue on centos too (although I don't remember with which filetypes). For now I'm handling this problem in the insecure way.. using the mime and extension sent by the browser, and marking the file as insecure in that case.

Re: Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread Jeremiah Dodds
On Thu, Jun 16, 2011 at 4:24 AM, waldo2188 waldo2...@gmail.com wrote: Thanks for your response, but, *$this* hasn't method named *getService* . Oh, sorry about that. I forgot that I had defined the getService method :/. From your other response, it looks like you figured it out though, sorry

[symfony-users] using symfony 1.4.11 sfTestFunctional check to verify if page contains specific text

2011-06-17 Thread dmitrypol
Any suggestions on how to make this work? As part of my functional tests I am trying to verify if address_book module, index page contains text address book (it does). However sfTesterReponse-checkElement checks entire text of the page. And if I do check('address_book/index', 'address

[symfony-users] [SF2] Functional Testing and SF2 Security

2011-06-17 Thread Roger Webb
Hello Everyone, I am starting down the road of functional testing with Symfony and am wondering what is considered the best practice for simulating authentication. My app uses form-based authentication. The cook book contains a piece on simulating HTTP authentication, but I couldn't find

[symfony-users] [SF2] WebTestCase Issues

2011-06-17 Thread Roger Webb
I tried creating the client with a fully-qualified url and with the route only and get the same error. This is the error I get when running phpunit: There was 1 error: 1) ARN\UserBundle\Tests\Controller\UserControllerTest::testLoginAction InvalidArgumentException: The current node list is

[symfony-users] Blog plugin for symfony1.4

2011-06-17 Thread Imran
Hi devs, Is there any plugin exists for blog integration in symfony 1.4 application? I found a plugin sfSimpleBlogPlugin, but it works with Propel with symfony 1.1. -Imran -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] Blog plugin for symfony1.4

2011-06-17 Thread Stéphane
Hello, With Apostrophe there is a blog plugin. www.apostrophe-now.com But you might need to use Apostrophe to use the plugin. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sat, Jun 18, 2011 at