Re: [symfony-users] Re: Highlighting menu based on controller called

2012-06-18 Thread Pierre de LESPINAY
Couldn't we organize the menu by controller or bundle ? So we could base the selected item on it -- 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

[symfony-users] Re: Symfony2 on GoDaddy

2012-06-18 Thread rafael
On Tuesday, May 3, 2011 11:13:47 AM UTC-7, Laurus wrote: Hi fellow Symfony2 friends! I have webhosting on GoDaddy (I regret it) and trying to run my Symfony2 test page on it. Unfortunately I am still receiving this line: No input file specified. I created new subdomain (test) with webdir

[symfony-users] Re: [Sf2+MongoDB] predefine key for EmbedMany

2011-12-21 Thread tecbot
Look at this pull request: https://github.com/doctrine/mongodb-odm/pull/194 It was merged yesterday, but the pull requests brokes the remove operation of embedded documents. Please wait -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Re: [symfony2] What is the best way to handle URLs in javascript files called by assetic

2011-11-30 Thread Jared McAteer
The solution I've resorted to, which I feel is less hacky than including hidden inputs or anchors is including a global variable that includes the paths I need on in the particular template. e.g., in my index.html.twig: {%extends '::base.html.twig' %} !-- bunch o' html -- {% javascripts

[symfony-users] Re: [symfony-es] Hola, necesito que pases esto

2011-11-30 Thread Luis Angel Pérez Calaña
El 16/11/11, se bardo dsa...@gmail.com escribió: Maria Jose Fernandez-Pacheco Gallego Subdirectora de Enfermería *HOSPITAL GENERAL de CIUDAD REAL * Teléfono: 926 278202 926 278202 ext. 79201 fax. 926 278503 email:

[symfony-users] Re: About cache:clear command

2011-06-23 Thread Ozzy
Thanks for the answer, it is now clear that why I get errors in the application since I only cleared the dev cache using the command. I also want to ask what does warming the cache up do? On Jun 23, 12:51 am, Christophe COEVOET s...@notk.org wrote: Le 22/06/2011 22:59, Ozzy a �crit : Hi, I

Re: [symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-23 Thread Michel Salib
Most of the time this error appear because of a bad initialization of your object. It looks like you do not have any constructor, so you don't seem to initialize any collection which you should do if you have some. What is your orm mapping ? -- If you want to report a vulnerability issue on

Re: [symfony-users] Re: About cache:clear command

2011-06-23 Thread Christophe COEVOET
Le 23/06/2011 09:40, Ozzy a écrit : Thanks for the answer, it is now clear that why I get errors in the application since I only cleared the dev cache using the command. I also want to ask what does warming the cache up do? It creates the cache instead of relying on the first request to do it.

[symfony-users] Re: symfony 1.4 - renderComponent() and ajax problem

2011-06-23 Thread Imran
Hi there, Just replace the line: return $this-renderComponent(product_comment, showComment, array('comment' = $product_comment, 'class' = hidden)); with: $text = $this-getComponent(product_comment, showComment, array('comment' = $product_comment, 'class' = hidden)); return

[symfony-users] Re: How change error message in repeated form???

2011-06-23 Thread François CONSTANT
Hi, so if it's similar to the following XML, what's the getter property to edit then for a repeated field? class name=Acme\BlogBundle\Author getter property=tokenValid constraint name=True option name=messageThe token is invalid/option /constraint /getter

[symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-23 Thread François CONSTANT
Hi, the current user can't be serialized apparently. Changing private $usuario; to protected $usuario should solve that issue. It must be done on related entities as well. On Jun 23, 5:45 pm, Michel Salib michelsa...@gmail.com wrote: Most of the time this error appear because of a bad

Re: [symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-23 Thread Christophe COEVOET
Le 23/06/2011 10:22, François CONSTANT a écrit : Hi, the current user can't be serialized apparently. Changing private $usuario; to protected $usuario should solve that issue. It must be done on related entities as well. On Jun 23, 5:45 pm, Michel Salibmichelsa...@gmail.com wrote: Most of

[symfony-users] Re: Jobeet Day 5 - Problem with Homepage

2011-06-23 Thread Roy Raider
If that can help when I remove _slug in rooting.yml all work. (but i hadn't anymore slugify URL for jobs) PS: I hadn't repository cause I didn't succeed to did it, but I will post my code in 3~4hours, I cant now. -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: [Sf2+MongoDB] predefine key for EmbedMany

2011-06-22 Thread Mathias
Sorry, lost the n: EmbedMany. I don't use github. The code is just an short example to demonstrate my problem. The defined array_key won't get used by doctrine/symfony2 for mongodb. Hope the example is clear enough... On 21 Jun., 18:00, Luis Cordova cordo...@gmail.com wrote: EmbedMay? not

[symfony-users] Re: file upload example?

2011-06-22 Thread Chris
In beta5 that problem I described is now solved, but there's another one: when preUpload() gets called, the field 'file' is not filled in (reference: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html) so I have no way to call 'file-guessExtension()'. Any idea?? -- btw I am

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

2011-06-22 Thread Marcelo Prizmic
+1 split 2011/6/21 Jeremiah Dodds jeremiah.do...@gmail.com On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova cordo...@gmail.com wrote: splitting is counterproductive, we can always hit delete I myself hit a ton of deletes even with sf2 and I am for sf2, so i think people is having too thin

Re: [symfony-users] Re: file upload example?

2011-06-22 Thread oscar balladares
Have you try a postPersist event? If that is working, and prePersist not, then you can use the postPersist. If the fileupload returns an exception, then the persist won't be commited anyway. Also, on a postPersist event you have access to the Entity's id, which is very useful for generating an

[symfony-users] Re: Exception throw UsernamePasswordToken

2011-06-22 Thread Michel Salib
Can you be more specific ? Also can you show us your User class (and its relations) ? -- 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

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

2011-06-22 Thread Andras
+1 On jún. 22, 07:07, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 6/21/11 5:49 PM, Luis Cordova wrote: don't fabien you will give more work to everybody as you said the problem will be only for few more months then sf1.x will die out and problem solved :) symfony1

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

2011-06-22 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 for splitting into new lists As SF2 RC1 is about to be released, this is the perfect time to move to a new list. The answers on that list are more likely to be correct to anyone searching the archives (prior to the API being stable, an answer

[symfony-users] Re: SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
Or at least mention the generate:hydrators :) On 22 juin, 12:12, Adrien Mogenet adrien.moge...@gmail.com wrote: Hi everyone, I was playing with Doctrine and MongoDB thanks to SF2, and I observed that a configuration line was missing in your documentation. doctrine_mongodb:    

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

2011-06-22 Thread Grzegorz Śliwiński
So... It seems about right. Is sluggable field in the table in database? On Jun 21, 6:53 pm, lucia aicul...@gmail.com wrote: Hi, thanks for your time, I have this: //Basemyprofile1 $timestampable0 = new Doctrine_Template_Timestampable();         $sluggable0 = new

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

2011-06-22 Thread lucia
No, it isn't On 22 jun, 15:13, Grzegorz Śliwiński fi...@fizyk.net.pl wrote: So... It seems about right. Is sluggable field in the table in database? On Jun 21, 6:53 pm, lucia aicul...@gmail.com wrote: Hi, thanks for your time, I have this: //Basemyprofile1 $timestampable0 = new

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

2011-06-22 Thread Jérôme P .
Dear Jake, I also have some difficulties using PHPExcel in Symfony2. Would you mind sharing the code you used for the autoload and a quick example of use? Thanks, Jerom -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

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

2011-06-22 Thread Jérôme P .
Hi Jake, I also have some difficulties to register properly PHPExcel librairy :/ Would you mind sharing the code you use for the autoload and a quick example of use? Thanks, Jerome On 20 juin, 15:05, Jake jakewbis...@googlemail.com wrote: Thanks... i put it in the vendor folder and registered

[symfony-users] Re: [Symfony2] [Solved] problem when using PHP Template following the Page Creation documentation

2011-06-22 Thread WebDevPT
Never mind, after reading the whole page i noticed that at the end there was another link to this topic: *How to use PHP instead of Twig for Templates* http://symfony.com/doc/current/cookbook/templating/PHP.html I simply had to change my configuration file and add this #

[symfony-users] Re: Security - UserProvider with Web Service - Get the password

2011-06-22 Thread Filipe La Ruina
I got the same problem. I have to curl an service passing username and password. It will return me a cookie corresponding to the user session. Any thoughts on how to do that? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: Security - UserProvider with Web Service - Get the password

2011-06-22 Thread Arturo Sevilla
Hi, loadUserByUsername() is not used to check the password. The password is checked once you get the user in memory by comparing the hashes (or plaintext if no encoder is used). You will need to implement the web service so you could return the user by its username, and configure Symfony so

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

2011-06-22 Thread Arturo Sevilla
You would need to set the HTTP Header X-Requested-With to XmlHttpRequest http://stackoverflow.com/questions/3124636/detect-ajax-calling-url -- 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] Re: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-21 Thread Grzegorz Śliwiński
hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes if they include your behaviours? On Jun 20, 2:13 pm, lucia aicul...@gmail.com wrote: Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1:  

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

2011-06-21 Thread Fabien Potencier
: symfony-users@googlegroups.com] On Behalf Of Marco Pivetta Sent: 18. toukokuuta 2011 10:39 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only? +1 as I am COMPLETELY not interested in Symfony 1.X and joined here to just

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

2011-06-21 Thread Gustavo Adrian
: symfony-users@googlegroups.com**] On Behalf Of Marco Pivetta Sent: 18. toukokuuta 2011 10:39 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only? +1 as I am COMPLETELY not interested in Symfony 1.X and joined here

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

2011-06-21 Thread Michel Salib
@Fabien, as you said, I might not be the right solution, but I agree on our proposal. -- 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

[symfony-users] Re: [Symfony2] How extend Entity Repository in bundle?

2011-06-21 Thread Ваня Масич
I see that base EntityRepository class already have __call method for findBy queries, and I think that extend this type of class is not needed, I can use query bilder or DQL for this feature. But how about Entity class, if I want add some new fields, how I can extend it without change source

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

2011-06-21 Thread Jeremiah Dodds
2011/6/21 Fabien Potencier fabien.potenc...@symfony-project.com I've been thinking about this mailing-list issue a lot during the last few months and I'm still convinced that creating more mailing-lists is not the right solution. Anyway, as many people think the contrary, here is what I

Re: [symfony-users] Re: [Symfony2] How extend Entity Repository in bundle?

2011-06-21 Thread Christophe COEVOET
Le 21/06/2011 16:54, Ваня Масич a écrit : I see that base EntityRepository class already have __call method for findBy queries, and I think that extend this type of class is not needed, I can use query bilder or DQL for this feature. But how about Entity class, if I want add some new fields,

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

2011-06-21 Thread Luis Cordova
don't fabien you will give more work to everybody as you said the problem will be only for few more months then sf1.x will die out and problem solved :) On Tue, Jun 21, 2011 at 9:58 AM, Jeremiah Dodds jeremiah.do...@gmail.com wrote: 2011/6/21 Fabien Potencier

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

2011-06-21 Thread Inori
Yeah, thanks, I realized this minutes after I sent the question. In fact I tested this with a code like if ($is_cached) { return $response; } else { sleep(5); // generate stuff for response here } When I launched this code on machine one, it slept for 5 secs like it should since there was no

[symfony-users] Re: Problem with Relationship Doctrine.

2011-06-21 Thread eric.malzone
ESPRO\OrigensBundle\Entity\IeUnidade: type: entity table: ie_unidade fields: id: id: true type: integer unsigned: false nullable: false generator: strategy: IDENTITY unidade: type: string length: 100 fixed: false nullable:

[symfony-users] Re: Request for Symfony 2 installation guide

2011-06-21 Thread alex.pilon
Hi Vaibhav, Check here for information about intl http://forum.symfony-project.org/viewtopic.php?f=23t=35565 and here about apc: http://www.apachefriends.org/f/viewtopic.php?f=16t=35822 I dont believe symfony 2 absolutely requires intl, and certainly does not require apc. These are simply

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

2011-06-21 Thread dmitrybelyakov
Hi Manu. We're currently considering the same choice: wait for ZF2 or switch to SF2. Doing ZF development for several years and following ZF2 development closely we're seriously considering moving to SF2 for the following reasons: 1. Symfony 2 is architectured better 2. Easy and clear

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

2011-06-21 Thread Tomasz Madeyski
I'm not sure if I remember well, but I think that actually there was no doctrine folder. Anyway, try to create folder doctrine and put schema.yml in it (/ config/doctrine/schema.yml) On 20 Cze, 23:17, moolligan moolli...@gmail.com wrote: Hi everybody, I'm doing the Jobeet tutorial whith

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

2011-06-21 Thread Stéphane Guidoin
Subject: Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only? +1 as I am COMPLETELY not interested in Symfony 1.X and joined here to just follow some of the issues coming of sf2 :) Marco Pivetta @Ocramiushttp://twitter.com/**Ocramiushttp://twitter.com

Re: [symfony-users] Re: [Symfony2] How extend Entity Repository in bundle?

2011-06-21 Thread Ваня Масич
If user implement entity himself, I can create base EntityRepository class too, with base methods, and he may extend it by inheritance or create its class and set it in entity settings. Thanks for help. -- If you want to report a vulnerability issue on symfony, please send it to security at

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

2011-06-21 Thread Luis Cordova
. toukokuuta 2011 10:39 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only? +1 as I am COMPLETELY not interested in Symfony 1.X and joined here to just follow some of the issues coming of sf2 :) Marco Pivetta

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

2011-06-21 Thread lucia
Hi, thanks for your time, I have this: //Basemyprofile1 $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'fields' = array( 0 = 'name', ), 'unique' = true,

Re: [symfony-users] Re: Request for Symfony 2 installation guide

2011-06-21 Thread Vaibhav Rajput
Wow so many replies hmmm,,, hey michel i m not blaming to some one... i m just giving feedback that if they will put these things also in doc then users who are beginner no need to search here n der they wil get to know everything from one resource only... seven seven i hav already tried with

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

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova cordo...@gmail.com wrote: splitting is counterproductive, we can always hit delete I myself hit a ton of deletes even with sf2 and I am for sf2, so i think people is having too thin of a skin. If you think the use of a 1.x branch of a popular

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

2011-06-21 Thread oscar balladares
Yes, de DI and Delivering Bundles as Plugins is so easy and powerful! 2011/6/21 dmitrybelyakov dmitrybelya...@gmail.com Hi Manu. We're currently considering the same choice: wait for ZF2 or switch to SF2. Doing ZF development for several years and following ZF2 development closely we're

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

2011-06-21 Thread Marco Pivetta
I'm still waiting for Zend Framework 2 MVC to start some new projects... The draft is really interesting, and if it is implemented well as it is defined... Well then Symfony 2 will be just part of my /lib for me :) I'm just waiting a couple of weeks more to see what is going on :D Marco Pivetta

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

2011-06-21 Thread Rich Sage
2011/6/21 Fabien Potencier fabien.potenc...@symfony-project.com I've been thinking about this mailing-list issue a lot during the last few months and I'm still convinced that creating more mailing-lists is not the right solution. Anyway, as many people think the contrary, here is what I

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

2011-06-21 Thread oscar balladares
+1 For Fabien proposal (I would vote him for president of my nation if I could). Core developers, and Symfony Ninjas will still be able to suscribe to both lists and feel in peace with themselves :P Luis Cordoba: Very funny - muy gracioso :D S1 won't die as long as S1 projects

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

2011-06-21 Thread oscar balladares
I'm pretty sure there is a doctrine folder. I downloaded it 2 days ago ;) 2011/6/21 Tomasz Madeyski tomasz.madey...@gmail.com I'm not sure if I remember well, but I think that actually there was no doctrine folder. Anyway, try to create folder doctrine and put schema.yml in it (/

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

2011-06-21 Thread Fabien Potencier
On 6/21/11 5:49 PM, Luis Cordova wrote: don't fabien you will give more work to everybody as you said the problem will be only for few more months then sf1.x will die out and problem solved :) symfony1 is not going to die anytime soon. End of maintenance is end of 2012; and people will

[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] 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] 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

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] 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] 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] 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

[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

[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

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] 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] 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] 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] Re: Invoke private method in controller

2011-06-19 Thread Haulyn Jason
Thanks, it must something be wrong, I will check now. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulynjason.net On Mon,

[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] 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,

[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] 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] 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] 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] 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 =

[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

[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] 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.

[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

[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] 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

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:

[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

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

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

[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] 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

[symfony-users] Re: AdminBundle

2011-06-15 Thread Thomas Rabaix
This should be fixed, see https://github.com/sonata-project/AdminBundle/issues/133 On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote: Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get :

[symfony-users] Re : Re: FOSFacebookBundle

2011-06-15 Thread symfonyMan
hello, you have the FOSFacebookBundle working with facebook sdk 3.0 ?? i updated the sdk but i receive this error all time : ErrorException: Notice: A session had already been started - ignoring session_start() in

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

2011-06-15 Thread spider
Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console command it throw the exception about enum

  1   2   3   4   5   6   7   8   9   10   >