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

2011-06-20 Thread Stephan Petzl
we do a regular form login once per webtestcase. that works, but is a little bit dirty, cause you have to consider the order if the teststep execution. if anyone knows how to do it better: please share your thoughts! BR Stephan On Jun 18, 8:18 am, oscar balladares liebegr...@gmail.com wrote:

[symfony-users] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-20 Thread oscar balladares
Hi everybody!. I'm using Yaml configuration for doctrine metadata. All others events (prePersist, postPersist, preRemove, postRemove) are working properly, but not the preUpdate and PostUpdate. Of course, I'm just calling the 'persist' method of the $EntityManager:

[symfony-users] missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Hi all, Here is my problem : I tryied to display data with the getRepository()-findAll function in SYmfony 2. My entities are displayed, but the first occurence is missing. For example I want to display movie's categories from my database which are COMEDY, HORROR,and ROMANCE, but the

[symfony-users] Re : missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Sorry, I've founded the solution. It came from the accents on my e characters. ( I'm french ) But if someone can told me how I can fix it, it would be nice ;) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] [Symfony2] Can't understand how reverse proxy works

2011-06-20 Thread Inori
What I have: 2 computers on LAN, web server on one of them, to which I have access from both computers via 192.168.0.100. Symfony2 which uses reverse proxy cache with e-tag. app.php: http://pastebin.com/hupi9bYN controller code: http://pastebin.com/7mWSt3jv Caching itself works fine (I go to

[symfony-users] Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Jake
I'm need to use the PHPExcel library (and other libraries) in symfony2. What is the correct way of setting this up so that the classes etc are found. Should i put it into the vendor directory? How do i set up the configuration etc? Any tips / shared experiences much appreciated. Thanks -- If you

[symfony-users] [s1.4][d1.2] Insert blob data into database (oracle)

2011-06-20 Thread Tomasz Madeyski
Hi all I struggle with inserting blob data into oracle. I tried two ways: 1. I have a form in which blob_data is $this-setWidget(blob_data, new sfWidgetFormInputFile()); I bind form values $form-bind( $request-getParameter($form-getName()), $request- getFiles($form-getName())

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

2011-06-20 Thread matteosister
I use $ext = $uploadedFile-guessExtension() == null ? $uploadedFile- getExtension() : $uploadedFile-guessExtension(); where uploadedFile is a field of my entity (not persisted) used in the forms. I followed the cookbook: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html and

[symfony-users] Doctrine Annotation

2011-06-20 Thread Cyril Mouttet
Hello guys I have problems by generating a custom repository classe with annotations. I'm following the documentation and got stuck at the Doctrine part: Custom Repository Classes. It says that you have to add following annotation to the Product Entity: /** *

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

2011-06-20 Thread Louis Huppenbauer
btw - zip for docx is not that far off. docx-files are essentially zipped xml-files ;) sincerely louis 2011/6/17 Gustavo Adrian comfortablynum...@gmail.com: 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

[symfony-users] Symfony 1.4 - Management of a blob (or PostGIS) field with doctrine

2011-06-20 Thread Stéphane Guidoin
Hello there, I'm quite new with symfony and I'm trying to make it work with PostGIS thru doctrine. I installed sfMapFishPlugin but my problem seems to be as basic as managing a blob/bytea field. So by considering only the blob question, here is my problem : - I design a table with a blob

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

2011-06-20 Thread Ваня Масич
Thanks you *Matías Roldán*, but i forget say that question on symfony2. -- 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

[symfony-users] Re: Is it possible create validator dynamicly?

2011-06-20 Thread Vadzim L
Please, any news? -- 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-users@googlegroups.com To

[symfony-users] Symfony2 Form + Doctrine2 Updating an Entity

2011-06-20 Thread avanwieringen
I am testing the Form and Doctrine2 functionality of Symfony2 and I love it however, the documentation on the Symfony2 website is not entirely clear (to me) concerning the updating of an Entity. I have created a simple form for adding and deleting users. My controller action looks like follows:

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

2011-06-20 Thread matteosister
I've just tried nowand my script doesn't work too for incorrect mime types... -- 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

[symfony-users] Lazy loading in doctrine isn't working

2011-06-20 Thread jletellier
I updated to Symfony BETA5 and now lazy loading doesn't seem to work anymore. In the controller I did the following: $em = $this-getDoctrine()-getEntityManager(); $task = $em-getRepository('BpErpBundle:BpTask')- findOneById($taskId); And then I tried to get access of a foreign entity: $author

[symfony-users] Stof : MappingException

2011-06-20 Thread mrdev
Hi there, since i decided to use the translatable feature of the Stof \DoctrineExtensionsBundle i get this error [Doctrine\ORM\Mapping \MappingException] No identifier/primary key specified for Entity 'Stof \DoctrineExtensionsBundle\Entity\LogEntry'. Every Entity must have an

[symfony-users] AsseticBundle ?

2011-06-20 Thread Arturo Sevilla
Hello, Does Beta5 come without the AsseticBundle installed? I downloaded both the tgz and zip version of Symfony SE with vendors and neither in both files the AsseticBundle was present. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at

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

2011-06-20 Thread Hristo Salabashev
Hi Bart, having `children` the same type as the parent starts an endless recursion ( children like create another children which will create another and so on ). Easiest way to address this (tho maybe not optimal) is to create another definition for the nested type. On Jun 17, 9:02 am, Bart

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

2011-06-20 Thread Lajos Cseppentő
I managed to solve. I had to also set charset in config.yml at the doctrime dbal part On 17 June 2011 16:33, Marco Pivetta ocram...@gmail.com wrote: Could you please check the encoding of your source files? Also check the content-encoding headers sent by your web server :) Marco Pivetta

[symfony-users] weird problem with i18n in the table object

2011-06-20 Thread GaB
Hi, I'm building a little blog system. I show the last post in the home page and then when clicked it shows the content of the post. I'm facing this weird problem when calling from an action in differents modules: when calling from the home module: $this-sf_in_blog_posts =

[symfony-users] symfony2 form - data never bound to it

2011-06-20 Thread james
i have a simple form in symfony2 (beta 5), but the post data is never bound to the form. here are my classes (trimmed for brevity): /** * Represents a User * * @ORM\Entity * @ORM\HasLifecycleCallbacks() */ class User { /** * @ORM\Id * @ORM\Column(type=integer) *

[symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
How I can make required field validation only for create, and disable it on update, for example when user register, field password should not be null, but on update it should not be null only if user whant update password? -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Symfony 1.4 - Management of a blob or postGis field with doctrine

2011-06-20 Thread Stéphane Guidoin
Hello, I'm quite new with symfony and I'm trying to make it work with PostGIS thru doctrine. I installed sfMapFishPlugin but my problem seems to be as basic as managing a blob/bytea field. So by considering only the blob question, here is my problem : - I design a table with a blob that

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

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 11:09, ? a écrit : How I can make required field validation only for create, and disable it on update, for example when user register, field password should not be null, but on update it should not be null only if user whant update password? Set the /required/ option on

Re: [symfony-users] Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Christophe COEVOET
Le 19/06/2011 15:57, Jake a écrit : I'm need to use the PHPExcel library (and other libraries) in symfony2. What is the correct way of setting this up so that the classes etc are found. Should i put it into the vendor directory? How do i set up the configuration etc? Any tips / shared

Re: [symfony-users] [Symfony2] Can't understand how reverse proxy works

2011-06-20 Thread Christophe COEVOET
Le 18/06/2011 08:38, Inori a écrit : What I have: 2 computers on LAN, web server on one of them, to which I have access from both computers via 192.168.0.100. Symfony2 which uses reverse proxy cache with e-tag. app.php: http://pastebin.com/hupi9bYN controller code: http://pastebin.com/7mWSt3jv

Re: [symfony-users] Stof : MappingException

2011-06-20 Thread Christophe COEVOET
Le 17/06/2011 22:29, mrdev a écrit : Hi there, since i decided to use the translatable feature of the Stof \DoctrineExtensionsBundle i get this error [Doctrine\ORM\Mapping \MappingException] No identifier/primary key specified for Entity 'Stof \DoctrineExtensionsBundle\Entity\LogEntry'.

[symfony-users] Re: Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Jake
Thanks... i put it in the vendor folder and registered a prefix with the autoloader. works! -- 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] Required fields on create/update

2011-06-20 Thread Ваня Масич
Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do this?, Or maybe I should do this in *Form*

[symfony-users] sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-20 Thread lucia
Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: true}} columns:

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

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 14:34, ? a écrit : Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do

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

2011-06-20 Thread Michel Salib
Hi stof, What is a validation group? I never heard of that before. -- 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,

[symfony-users] javascript/jquery form in Symfony 2

2011-06-20 Thread Jérémy Simonklein
Hi all, I've a little bit difficult problem... I would want create a form, thanks to a MyentityType.php , but who can render a JDialog modal form in it, to add some embedded entities dynamically, like on this page http://jqueryui.com/demos/dialog/#modal-formbut in a form. I'm working on it

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

2011-06-20 Thread Ваня Масич
Thanks all for help, I'll try use this solution. -- 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] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

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

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 16:02, Michel Salib a écrit : I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? When creating a form, you can pass the /validation_group/s option (as an array of groups) to tell

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

2011-06-20 Thread Michel Salib
@stof 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 users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] Learn Symfony2 or switch to Zend ?

2011-06-20 Thread Manu
My development team created a website with symfony 1.4, but the project turned out a nightmare : few knew how to code with symfony, we were too many working on the project, and we ended up with a mess hard to maintain. Personally, I'm a symfony fan and can't wait the release of 2.0, but the team

Re: [symfony-users] Learn Symfony2 or switch to Zend ?

2011-06-20 Thread Marco Pivetta
Zend Framework 2's MVC still has to be implemented. You should really delay the debate ~3 weeks from today before taking any decision... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 20 June 2011 17:00, Manu emmanuel.parf...@gmail.com wrote: My development team created

[symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread ddanninger
Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to get some help =) best regards dominik

Re: [symfony-users] AsseticBundle ?

2011-06-20 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, according to UPDATE.md in the root of symfony: ... beta4 to beta5 - -- ... * The AsseticBundle has been moved to its own repository (it still bundled with Symfony SE). ... so if assetic is not part of the SE, this sounds like a

Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier
On 6/20/11 5:15 PM, ddanninger wrote: Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to

Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier
On 6/20/11 5:15 PM, ddanninger wrote: Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to

Re: [symfony-users] AsseticBundle ?

2011-06-20 Thread Mario Alberto Alvarez Garcia
Is still there, it just change the location, now you can find it in /vendor/bundles/Symfony/Bundle -- 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: symfony2 beta4 Split 1 relation in 3 collections in a form?

2011-06-20 Thread ibrows_symfony
I found out, how I can save the addresses. But I can't get back my saved addresses in the form. Any Idea? -- 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] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-20 Thread keymaster
Does anyone else think we should be keeping 3rd party bundles separate from the Symfony2 Standard Edition distribution, as a means of easing future upgrades once Symfony2 becomes stable? ie. app/ bin/ src/ vendor/ (containing only 3rd party bundles not in the Symfony2 SE distribution)

Re: [symfony-users] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 18:45, keymaster a écrit : Does anyone else think we should be keeping 3rd party bundles separate from the Symfony2 Standard Edition distribution, as a means of easing future upgrades once Symfony2 becomes stable? ie. app/ bin/ src/ vendor/ (containing only 3rd party

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

2011-06-20 Thread Gustavo Adrian
Yes. You can even open the zip without problems. But anyway that's not the correct mime type. And it's not the only case it detects the wrong mime type. That's why I, sadly, have to use the original extension and mime type until I find a better and consistent solution. I know it's not the best way

Re: [symfony-users] Lazy loading in doctrine isn't working

2011-06-20 Thread oscar balladares
Hi. I won't give you the answer you are expecting, but an advice: Try to avoid lazy loading, always; you can do pretty much with DQL. 2011/6/20 jletellier letellier.jul...@googlemail.com I updated to Symfony BETA5 and now lazy loading doesn't seem to work anymore. In the controller I did

Re: [symfony-users] Re : missing first data in data list

2011-06-20 Thread Vincent Lechemin
it's a problem of encoding, make sure your database settings use utf8, and use utf8_encode/decode to display or write back into the database -- Vincent On Jun 20, 2011 1:35 PM, Jérémy Simonklein jeremy.simonkl...@gmail.com wrote: Sorry, I've founded the solution. It came from the accents on my

[symfony-users] Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Hi everyone, I'm still trying to query my MongoDB store thanks to symfony2 and Doctrine ODM. I'm following these instructions : http://symfony.com/doc/current/cookbook/doctrine/mongodb.html So I tried : $dm = $this-get('doctrine.odm.mongodb.document_manager'); $user = $dm-createQuery('find

Re: [symfony-users] Symfony2 : Query MongoDB collection

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 21:05, Adrien Mogenet a écrit : Hi everyone, I'm still trying to query my MongoDB store thanks to symfony2 and Doctrine ODM. I'm following these instructions : http://symfony.com/doc/current/cookbook/doctrine/mongodb.html So I tried : $dm =

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
I don't get it... from the documentation link I was talking about, User class was annotated with : /** @mongodb:Document(collection=users) */ I used this syntax ; you tell me this one is wrong ? On 20 juin, 21:10, Christophe COEVOET s...@notk.org wrote: Le 20/06/2011 21:05, Adrien Mogenet a

Re: [symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 21:17, Adrien Mogenet a écrit : I don't get it... from the documentation link I was talking about, User class was annotated with : /** @mongodb:Document(collection=users) */ I used this syntax ; you tell me this one is wrong ? When following the link, I see / use

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Seriously dude... I checked ; several times. Here is the version I had in my tab : http://twitpic.com/5ef73k Documentation has just been updated recently, I didn't had your version even 1 hour ago... Thanks anyway On 20 juin, 21:27, Christophe COEVOET s...@notk.org wrote: Le 20/06/2011

[symfony-users] [SF2] WebTestCase - Simulate AJAX Request

2011-06-20 Thread Roger Webb
Hey Everyone, I use if($this-get('request')-isXmlHttpRequest() in several places and was wondering how you would simulate an XmlHttpRequest using BrowserKit/Client (ie. is there something built in or do I need to set some headers). Roger -- If you want to report a vulnerability issue on

[symfony-users] How to change the backend control

2011-06-20 Thread Rebin Joseph
Hi I have created backend and I have admin modules with me now. I want to change on text field available in the backend form to radio button as True and False. How is it possible with generate,yml entry amends? -- If you want to report a vulnerability issue on symfony, please send it to

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

2011-06-20 Thread Flo
Thanks, that works like a charm :) On 17 Jun., 16:39, Michael Holm ho...@hollo.dk wrote: 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

Re: [symfony-users] Jobeet Day 3 : problem with Doctrine folder

2011-06-20 Thread oscar balladares
You probably downloaded a previous version than 1.4. I've recently downloaded 1.4 and everything is ok. 2011/6/20 moolligan moolli...@gmail.com Hi everybody, I'm doing the Jobeet tutorial whith Symfony 1.4. On Day 3, I have to modify the schema.yml file (to build my database). This file is