[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

Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
Yes, am trying to generate:entites - but it has no effect. Interesting that files entities/Products.php entites/Category.php was modifed with any generate:entites - but it's has no effect and i can't see any setter|getter for relation -- If you want to report a vulnerability issue on symfony,

[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] [Symfony2] Theming embedded form

2011-06-22 Thread Grégoire
Hi, I'm currently working with addresses which are frequently reused through my application. That's why I would like to reuse the piece of forms that can render the Address related fields, so I decided to embed the AddressType form in other forms. Now I would like to customize theming for the

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

2011-06-22 Thread Roy Raider
Hi all, I have a problem with the end of the Day 5 on Jobeet. When I have slugify the url for jobs, all works fine but the homepage where i should have the list of jobs (who works before this action) it's now a white page with only Paris, France write on. I did the tutaurial twice, and I have

[symfony-users] ./symfony propel:build-forms fails for plugins

2011-06-22 Thread Helloise Smit
here is an excerpt of ./symfony propel:build-forms: helloises@helloise:~/github_mira/rainbow_code/phoenix$ ./symfony propel:build-forms --connection=PropelPDO propelgenerating form classes tokens

[symfony-users] SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
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: auto_generate_hydrator_classes: true Otherwise, lots of things won't work properly... Regards, -- If you want to report a

[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

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

2011-06-22 Thread Marcelo Prizmic
Oscar Thanks for the example!! Did you use entity manager in the uploadFile()? In my case I would need to make some queries inside the preEvent function. Do you know how? Marcelo 2011/6/21 oscar balladares liebegr...@gmail.com Hi Marcelo; yes, of course: I'm currently using YML config

[symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread theinterned
Hi, I am looking around for a solution to load seed data into my project. Until now, I have been using fixtures to load the data, but of course this gets very dangerous when you have live, non static data on your production server! In the rails world, there is Seed Fu

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread Tac Tacelosky
+1 for interest. Not sure if I can contribute much to the development -- still getting my head around bundles, src, vendors and third_party, and how all this will fit into svn (my code) and git (Symfony SE / Symfony / Vendors). But I like the idea -- we're porting from CodeIgniter, and right now

[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] [Symfony2] problem when using PHP Template following the Page Creation documentation

2011-06-22 Thread WebDevPT
Hi, perhaps I'm wrong but following the steps from the http://symfony.com/doc/current/book/page_creation.html and using the PHP render option leads me to no template at all with just echoed chars. I used the twig template option using the proper render at *//

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

2011-06-22 Thread oscar balladares
Do you have it on a github repository? It would be great if you do. Not being able to see your code is a huge backdraw. I'm 99.99% that is a problem with your code, so we need to see it to figure out what is happening. But, you can post all your code from day 4, and day 5 here to take a look at

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

2011-06-22 Thread oscar balladares
If you are calling another pages within a href tag, but using JS (i.e ajax request) you can get the link's url: $('#a-link').click(function(e){ var $url = $(this).attr('href'); $(this).preventDefault; //request content based on the url, with ajax. }); If it is not a request, you could use a

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

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

2011-06-22 Thread oscar balladares
I meant : 'if it is not a link-for-ajax-purpose, then you can use hidden fields'. 2011/6/22 oscar balladares liebegr...@gmail.com If you are calling another pages within a href tag, but using JS (i.e ajax request) you can get the link's url: $('#a-link').click(function(e){ var $url =

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread oscar balladares
+1. It sounds great! Sadly, I'm very busy at the time, so I can't help right now :( 2011/6/22 Tac Tacelosky tac...@gmail.com +1 for interest. Not sure if I can contribute much to the development -- still getting my head around bundles, src, vendors and third_party, and how all this will fit

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

2011-06-22 Thread oscar balladares
I Marcelo. I have not tried to use the EM, but as far as I know, it is not available in the Entity's scope, I will try to find out if this is correct, because I'm interested in atomic queries. Regards! 2011/6/22 Marcelo Prizmic mpriz...@gmail.com Oscar Thanks for the example!! Did you use

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread Jeremiah Dodds
On Wed, Jun 22, 2011 at 11:41 AM, theinterned ned...@gmail.com wrote: Hi, I am looking around for a solution to load seed data into my project. Until now, I have been using fixtures to load the data, but of course this gets very dangerous when you have live, non static data on your

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

2011-06-22 Thread Marco Pivetta
You should use Doctrine 2 Event listeners if you need access to the EntityManager. Usage of the EntityManager within entities themselves is STRONGLY discouraged, especially within Life-cycle Callbacks. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 22 June 2011 18:32,

Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
I forget how, but i solve problem after many attemps. -- 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] 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] About cache:clear command

2011-06-22 Thread Ozzy
Hi, I wonder what is the difference between app/console cache:clear and rm -rf app/cache/* commands. When I use the first one, I sometimes get errors in the web application, so I use the second one. But, what is the exact difference? Thanks. -- If you want to report a vulnerability issue on

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

2011-06-22 Thread Christophe COEVOET
Le 22/06/2011 22:59, Ozzy a écrit : Hi, I wonder what is the difference between app/console cache:clear and rm -rf app/cache/* commands. When I use the first one, I sometimes get errors in the web application, so I use the second one. But, what is the exact difference? Thanks. The first one

[symfony-users] [Symfony 2] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread Gustavo Adrian
Hi everyone, As far as I know, the best way to backup/restore a database is using the utility each db vendor provides for such a task. That's why I've started to work today in a bundle that provides a way to execute these utilities within symfony's environment. I had it working some time ago, but

Re: [symfony-users] [Symfony 2] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread oscar balladares
+1 It would a very nice utility. I'm pretty sure it will catch community attention. Does It will be like the admin bundle? with a GUI for such task? Does it would have a command-line utility? Regards! 2011/6/22 Gustavo Adrian comfortablynum...@gmail.com Hi everyone, As far as I know, the

Re: [symfony-users] [Symfony 2] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread Gustavo Adrian
For now it's a very simple bundle with a couple of classes that handles the call to the db vendor's utility that corresponds to the connection you use (for now only MySQL), using the connection's parameters. It has console commands too that uses those classes. You can simply run the backup with

[symfony-users] Name conflicts in Twig blocks

2011-06-22 Thread Kevin
Hey all, I'm integrating the FOS UserBundle (many thanks to the bundle developers, btw) into an application, and I'm trying to find the cleanest way to integrate the bundle templates stylistically. We have a base template that looks something like: {# MyBundle::base.html.twig #} ... {% block

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

2011-06-22 Thread vviippola
Hi ppl, I'm going crazy with this issue, probably something trivial I'm not able to figure out. I have a component which works fine when included on template using include_component() However, when I do this for ajax calls I'm getting an error. if ($request-isXmlHttpRequest()) { return

[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

Re: [symfony-users] Stof : MappingException

2011-06-22 Thread Benoît Bergstörm
Hi Christophe, i'm moving forward :) i'm trying to set my Area::$name property translatable. i added gedmo annotations to my class directly (see below). i use the Sonata AdminBundle to edit my 'Area' object. and the default saving still use the table 'name' field and not the 'ext_translation'

[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