[symfony-users] [sf2] Validating - equivalent of sfValidatorDoctrineUnique ?

2011-05-26 Thread winzou
I was looking for an equivalent of sfValidatorDoctrineUnique, but it seems it doesnt exist yet. Actually it should be quite easy because validation constraints are defined directly on the Entity. That's why I would be surprised if it really doesnt exist. Please let me know. Thanks -- If you

[symfony-users] Re: FOSFacebookBundle

2011-05-26 Thread Stephan Petzl
yes- thats it- thanks, works again! On May 25, 5:37 pm, Christophe COEVOET s...@notk.org wrote: Le 25/05/2011 17:18, Stephan Petzl a crit : By the way: after upgrading to BETA2 yesterday, authentication does not work anymore. I think there is some issue with the oAuth conversion of the

Aw: Re: [symfony-users] Re: How to deal with Form Collection on Symfony2 Beta ?

2011-05-26 Thread Conrad
@user123: check out the form theming: http://symfony.com/doc/current/book/forms.html#form-theming -- 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

[symfony-users] Re: Trying to generate entities (doctrine)

2011-05-26 Thread Javier Garcia
Thanks that worked! On May 25, 11:09 pm, Pierre p...@pierre-minnieur.de wrote: I bet the following will result in a could not guess where to put the classes in error:     php app/console doctrine:generate:entities Jander\\CalendarBundle But this should work right now:     php app/console

[symfony-users] [SF2] Service Dependency Injection...Best Practice

2011-05-26 Thread Kaipi Yann
Hi, As you probably know, when declaring a service in your app you can pass all needed services as parameter in the XML file so they will be use to instatiate the new service... I wonder what is the impact of passing directly the container, so I pass only one parameter to my service and I can

Re: [symfony-users] [SF2] Service Dependency Injection...Best Practice

2011-05-26 Thread Tim Nagel
It is bad practice. You would have to mock the container in tests and thats a big job. In short: dont do it :-) t On Thu, May 26, 2011 at 18:45, Kaipi Yann ydani...@gmail.com wrote: Hi, As you probably know, when declaring a service in your app you can pass all needed services as parameter

Re: [symfony-users] [SF2] Service Dependency Injection...Best Practice

2011-05-26 Thread Kaipi Yann
Thanks Merk, In fact I think it's because I don't test too much that I didn't notice this point... -- 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

Re: [symfony-users] [sf2] Validating - equivalent of sfValidatorDoctrineUnique ?

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 08:25, winzou a écrit : I was looking for an equivalent of sfValidatorDoctrineUnique, but it seems it doesnt exist yet. Actually it should be quite easy because validation constraints are defined directly on the Entity. That's why I would be surprised if it really doesnt exist.

Re: [symfony-users] [S2] Project configuration onn a Shared hosting.

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 07:37, oscar balladares a écrit : Hi Symfony family. I'm having troubles getting Symfony2 to work on a Shared Hosting enviroment. I would appreciate if you can point me how to set up a S2 application to be deployed on a shared hosting. If this helps in any way, this is what

[symfony-users] Write logs by datem, and not stored all into prod.log or dev.log

2011-05-26 Thread kassel
Hi, how i can stored logs by date, every day write a new log-date.log, becose it could be easly to mantain. Thanks -- Best Regards -- 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

Re: [symfony-users] [sf2] Validating - equivalent of sfValidatorDoctrineUnique ?

2011-05-26 Thread winzou
Amazing thanks! I will test it because this code : * $result = $repository-findBy($criteria); if (count($result) 0 $result[0] !== $entity) seems weird to me. What if $entity-email is not modified since its db retrieval, but $entity-age is? The $result[0] entity still has the old value for

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
I managed to implement my own factory class UrlLoginFactory extends AbstractFactory defined in my security_factories.xml and tell Symfony to use it. I also know that I should implement my AbstractAuthenticationListener, but I don't see the way to tell Symfony to use my listener. Config just let

Re: [symfony-users] Write logs by datem, and not stored all into prod.log or dev.log

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 11:46, kassel a écrit : Hi, how i can stored logs by date, every day write a new log-date.log, becose it could be easly to mantain. Thanks -- Best Regards Which version of Symfony are you using ? 1 or 2 ? For Symfony2, Monolog provide a RotatingFileHandler doing this (use it

Re: [symfony-users] Write logs by datem, and not stored all into prod.log or dev.log

2011-05-26 Thread Alvaro Touzon
Hi Christophe can you xplain more it, or give me an url to do it. Thanks 2011/5/26 Christophe COEVOET s...@notk.org Le 26/05/2011 11:46, kassel a écrit : Hi, how i can stored logs by date, every day write a new log-date.log, becose it could be easly to mantain. Thanks -- Best Regards

Re: [symfony-users] Write logs by datem, and not stored all into prod.log or dev.log

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 12:08, Alvaro Touzon a écrit : Hi Christophe can you xplain more it, or give me an url to do it. Thanks See the Readme of the Monolog library which describes the available handlers: https://github.com/Seldaek/monolog To use a RotatingFileHandler in your Sf2 project, configure

[symfony-users] SF2 DateValidation and Intl

2011-05-26 Thread s.rohweder
Hi, I'm trying to validate a Datetime coming from a form Input. While Debuggin I fall over the DateTimeToLocalizedStringTransformer on line 121 the IntlDateFormatter is requested in the method the IntlDateFormatter is instanciated with \Locale::getDefault(). On my System this returns en_US_POSIX

[symfony-users] Symfony / Symfony2 coding standards

2011-05-26 Thread Dmitry Bykadorov
Hi there! I'm looking for Symfony / Symfony2 coding standards configurations for PhpStorm and PHP Code sniffer. Tell me, such a configuration exists at all? Ang give me please a link, if exists... -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Problems passing params to route

2011-05-26 Thread coviex
Changed route to: url: /bla/:slug/:param1/:param2/ options: { regex: /bla/(?slug[^/]+)/bla-(?param1\d+)/bla-(? param2\d+)/ } Found a way to build url. Passing param1 and 2 with bla- concatenated. But still cannot parse url. No ideas at all? On May 25, 8:33 pm, coviex cov...@gmail.com

[symfony-users] Doctrine or Propel

2011-05-26 Thread jlassi zied
Hi , I'am newer in symfony and I want to know with wich ORM to develop ? doctine or propel ? Thanks . -- 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

[symfony-users] [SF2] Question on security password encoding

2011-05-26 Thread Alex
Hi, I just finished reading the security chapter of documentation and I have a doubt. Under the section Encoding the User's Password, it suggests to encode the password in the controller: $factory = $this-get('security.encoder_factory'); $user = new Acme\UserBundle\Entity\User(); $encoder =

[symfony-users] Symfony Forms, specifically with sfDoctrineGuard

2011-05-26 Thread hayden
Can anybody point me in the right direction for being able to customize all the sfGuard pages, specifically the markup as Symfony by default uses tables for EVERYTHING dealing with forms, even the login page. -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Re: Need Help to Install Symfony

2011-05-26 Thread Mikael Ohlsson
Seems like something is usling port 8080. Swap port tö something else. On May 25, 2011 7:55 AM, Chinthaka Rukshan Weerakkody chinthakaruks...@gmail.com wrote: Hi, I followed that tutorial and configured the httpd.conf file as follows. My installation directories are as follows. symfony

[symfony-users] Filter: set options

2011-05-26 Thread chandi
Hi, I'm new to symfony and started digging. I require to show set of check boxes instead of selects in symfony admin generator filter. This can be done in form by, $this-widgetSchema['options_list']-setOption('expanded', true); But when it comes to filter, how can that be done. Label text can

[symfony-users] [symfony2] Generate url with a parameter from a variable in Twig

2011-05-26 Thread xaben
Hello all, i want to replace the 'my-blog-post' part with a variable in Twig. And i am not sure how to do it. From: a href={{ path('blog_show', { 'slug': 'my-blog-post' }) }} Read this blog post. /a to something like: a href={{ path('blog_show', { 'slug': variable }) }} Read this blog post.

[symfony-users] PHP/Symfony Development position: full-time, join our team

2011-05-26 Thread Chriscypher
Hoping to find some talent to join our team: Web Applications Development Lead We are looking for a Web Applications Developer to work in a small team to develop custom applications using the web as a scalable deployment platform for complex vertical solutions. Expert-level proficiency required

Re: [symfony-users] [S2] Project configuration onn a Shared hosting.

2011-05-26 Thread Matt Robinson
On 26 May 2011, at 06:37, oscar balladares wrote: I'm having troubles getting Symfony2 to work on a Shared Hosting enviroment. […] My .htaccess file reads as follow: IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$

Re: [symfony-users] Symfony / Symfony2 coding standards

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 12:48, Dmitry Bykadorov a écrit : Hi there! I'm looking for Symfony / Symfony2 coding standards configurations for PhpStorm and PHP Code sniffer. Tell me, such a configuration exists at all? Ang give me please a link, if exists... A configuration is available here:

Re: [symfony-users] [symfony2] Generate url with a parameter from a variable in Twig

2011-05-26 Thread Christophe COEVOET
Le 25/05/2011 18:37, xaben a écrit : Hello all, i want to replace the 'my-blog-post' part with a variable in Twig. And i am not sure how to do it. From: a href={{ path('blog_show', { 'slug': 'my-blog-post' }) }} Read this blog post. /a to something like: a href={{ path('blog_show', {

[symfony-users] Re: Trying to generate entities (doctrine)

2011-05-26 Thread Zacarías
Hola Javier, estoy siguiendo el hilo de esta entrada porque me encuentro con el mismo problema que tu, [ErrorException] .../Driver/ AbstractFileDriver.php line 121 He intentado dearrollar los pasos que Pierre te indica y que a ti te funcionana pero no hay manera, me sigue apareciendo el mismo

Re: [symfony-users] Doctrine or Propel

2011-05-26 Thread Gábor Fási
Doctrine. It's the default ORM since 1.3, and it's easier for a beginner. --mrl On Thu, May 26, 2011 at 11:34, jlassi zied jlassi.z...@gmail.com wrote: Hi , I'am newer in symfony and I want to know with wich ORM to develop ? doctine or propel ? Thanks . -- If you want to report a

[symfony-users] Re: creating utf8 tables

2011-05-26 Thread davidj
Jumped to beta 2 and I'm still unable to create utf8 tables. A look in vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/ MySqlPlatform.php at line 383 clearly indicate that we can pass some options like comment, charset, collate and so. That means that we can configure this in Symfony without

[symfony-users] Re: Trying to generate entities (doctrine)

2011-05-26 Thread Zacarías
Listo, me falataba eliminar el cache y los archivos yml con la notación de la beta1, pero gracias de todas formas. Saludos, Zacarías On 26 mayo, 13:11, Zacarías zacarias.calab...@gmail.com wrote: Hola Javier, estoy siguiendo el hilo de esta entrada porque me encuentro con el mismo problema

[symfony-users] Re: Symfony / Symfony2 coding standards

2011-05-26 Thread Dmitry Bykadorov
ci.symfony.com uses sismo? or something else? On May 26, 3:01 pm, Christophe COEVOET s...@notk.org wrote: Le 26/05/2011 12:48, Dmitry Bykadorov a crit : Hi there! I'm looking for Symfony / Symfony2 coding standards configurations for PhpStorm and PHP Code sniffer. Tell me, such a

Re: [symfony-users] Re: Symfony / Symfony2 coding standards

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 13:16, Dmitry Bykadorov a écrit : ci.symfony.com uses sismo? or something else? It uses Jenkins. Sismo is not a full featured CI system. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
Now I'm getting 'LogicException' with message 'No authentication listener registered for pattern ^/. and it looks like I'm not alone http://forum.symfony-project.org/viewtopic.php?f=23t=35423 On May 26, 11:58 am, umpirsky umpir...@gmail.com wrote: I managed to implement my own factory class

[symfony-users] Re: Symfony / Symfony2 coding standards

2011-05-26 Thread Dmitry Bykadorov
I can't run CLI sismo on Windows7 (because it uses posix commands i mean). On linux i did'nt try it for now. Btw thanks guys! p.s. I'm worked on git pre-commit hook with php sniffer for windows. Anybody interested i it? On May 26, 3:19 pm, Christophe COEVOET s...@notk.org wrote: Le 26/05/2011

Re: [symfony-users] sfTCPDFPlugin: enable pdf creation from html containing images in CLI

2011-05-26 Thread Loïc Vernet
Hi, Well, the best would be not to modify the original tcpdf library but the plugin itself. Send me a contribution request if you have a patch so you can commit. See you. COil 2011/5/25 r...@donax.ch r...@donax.ch Hi, I recently experienced problems when creating pdf files from html

[symfony-users] Re: [symfony2] which is the correct way to deliver binary content?

2011-05-26 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bumping this up as i got no reply... any input? Am 11.05.2011 11:24, schrieb David Buchmann: hi, i have binary content that i have to deliver to the client. what is the right way to do it? i found two solutions, but neither seems really good.

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
Latest checkpoint, security.yml: security: encoders: Symfony\Component\Security\Core\User\User: plaintext providers: in_memory: users: sas: { password: bb87a29949f3a1ee0559f8a57357487151281386, roles: 'ROLE_USER' } admin: {

[symfony-users] Re: Symfony Forms, specifically with sfDoctrineGuard

2011-05-26 Thread Paulo Ribeiro
You should create the modules sfGuardAuth, sfGuardUser, sfGuardPermission, sfGuardGroup, etc (only the ones you need changed) and override the files you need customized. Symfony will automatically assume the new files as default. Regards, Paulo On May 26, 12:04 am, hayden hayden.k...@gmail.com

[symfony-users] symfony settings form

2011-05-26 Thread Michael Holm
Hi, I have a problem with a design for a form... hope someone can give me some inspiration: I have this table: Location: id location_name: Config: id config_name LocationConfig: location_id config_id value now, i dont really see how i can set this form up, the plan way to have

[symfony-users] MenuBundle

2011-05-26 Thread scott
I have an setting loaded from my config and depending on this entry I want the link in my menu to point to something different. my_conf: item: item_name I have a service that runs to pull out the entity with the name item_name and then I am able to access that entitys id property. In the

Re: [symfony-users] [S2] Project configuration onn a Shared hosting.

2011-05-26 Thread oscar balladares
Thank you very much! With those tips I fixed it !!! 2011/5/26 Matt Robinson m...@lazycat.org On 26 May 2011, at 06:37, oscar balladares wrote: I'm having troubles getting Symfony2 to work on a Shared Hosting enviroment. […] My .htaccess file reads as follow: IfModule mod_rewrite.c

Re: [symfony-users] [SF2] Question on security password encoding

2011-05-26 Thread oscar balladares
I'm doing it bypassing the entity from the form (obviously) to the entity's repository; the repo has a persistEntity(Entity entity) method, which encode the password and persist it with an entity_manager instance available in the repo context. This clears the controller from doing all that nasty

[symfony-users] Set form value from one field to another

2011-05-26 Thread thesaint
In my application I have users and every user has one or more customer entities. Users and customers both have a mandatory email field. When a new user signs up, I embed the customer form in the user form, but only want to present one email field to the user. How can I send the value from the

[symfony-users] Forms documentation

2011-05-26 Thread thesaint
I'm having a hard time understanding how the new form system really *works*. I understand the examples from the book and have no problem customizing the form templates. But how the different classes relate to each other, what class creates what effect, I have no idea. It would be cool to have some

Re: [symfony-users] Forms documentation

2011-05-26 Thread Christophe COEVOET
Le 26/05/2011 21:49, thesaint a écrit : I'm having a hard time understanding how the new form system really *works*. I understand the examples from the book and have no problem customizing the form templates. But how the different classes relate to each other, what class creates what effect, I

[symfony-users] Re: Set form value from one field to another

2011-05-26 Thread ericclemmons
There is a similar discussion here: http://groups.google.com/group/symfony-users/browse_thread/thread/5859dd2e41c8262d/22da2bc0047d523d?lnk=gstq=state+city#22da2bc0047d523d As for myself, I've been using an EventSubscriber and listing to the `postBind` event of one of the entities to gather the

[symfony-users] Session not initialized when using failure_forward?

2011-05-26 Thread thesaint
When I set failure_forward to true in my firewall configuration, I get a Call to a member function get() on a non-object in my controller. This is because the call to $this-get('request')-getSession() returns null. Is this a bug in Symfony or is the FOSUserBundle the cause here? This is my