Re: [symfony-users] Re: Certification programme

2010-02-19 Thread Norbert Haigermoser
+1 me too -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit

[symfony-users] Re: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread Javier Garcia
No idea about this? Javi On Feb 17, 9:44 pm, Javier Garcia tirengar...@gmail.com wrote: Maybe this time the image is attached correctly..:).. On 02/17/2010 09:23 PM, St�phane wrote: Why not foreach-ing ? Please give us more of your template to understand what you want to do. Cheers,

Re: [symfony-users] Re: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread Alexandru-Emil Lupu
I dunno your code ... but if you are playing with 2 doctrineCollections you might do it wrong ... maybe a join on those 2 tables would fix the issue... Dunno what are trying to do ... you gave us the solution ... not the problem itself. Why have you reach to use do DC ? What are you trying to do ?

RE: [symfony-users] Re: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread NOOVEO - Christophe Brun
I'm not sure since I'm still a beginner on symfony and doctrine, but if your variable is a Doctrine_Collection, I would try something like : $it = $amigos_miembro-getIterator(); while($it-next()) { do_stuff(); } -Message d'origine- De : symfony-users@googlegroups.com

Re: [symfony-users] Re: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread Michał Piotrowski
2010/2/19 NOOVEO - Christophe Brun c.b...@nooveo.fr: I'm not sure since I'm still a beginner on symfony and doctrine, but if your variable is a Doctrine_Collection, I would try something like : $it = $amigos_miembro-getIterator(); while($it-next()) {  do_stuff(); } I'm wondering why you

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-19 Thread Olivier
I've been tracking down this issue a little bit more within Doctrine code, especially within the hydrateResultSet function of the Doctrine_Hydrator_Graph object. There is a loop in this function, and I can see that it does fetch the two rows of data: rowData[v] = ([total]=100, [title] = 'prod_1')

[symfony-users] sfValidatorChoice always invalid!!

2010-02-19 Thread wueb
Hi mates, I'm having a problem in this piece of code: $modulos = array ( 1 = option 1, 2 = option 2); $this-widgetSchema['id_modulo'] = new sfWidgetFormSelectCheckbox( array('choices' = $modulos) ); $this-validatorSchema['id_modulo'] = new sfValidatorChoice( array('choices' =

Re: [symfony-users] sfValidatorChoice always invalid!!

2010-02-19 Thread Syam
You must only pass the keys of your $modulo array to validator : $this-validatorSchema['id_modulo'] = new sfValidatorChoice( array('choices' = array_keys($modulos)) ); wueb wrote: Hi mates, I'm having a problem in this piece of code: $modulos = array ( 1 = option 1, 2 = option 2);

[symfony-users] Re: sfValidatorChoice always invalid!!

2010-02-19 Thread wueb
Hi Syam, Doesn''t work :( -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

[symfony-users] Re: Error when checking out Symfony 2.0 SVN code

2010-02-19 Thread Matt Robinson
On Feb 18, 5:22 am, brent960 brent.willia...@gmail.com wrote: I've just tried unsuccessfully to checkout the latest Symfony 2.0 code from the Subversion mirror. [...] It appears that the YAML subdirectory is rendered in all caps in one place, and it first-letter cap-only on another. And

[symfony-users] I hate you

2010-02-19 Thread roberto german puentes diaz
Symfony 2 for late 2010. I hate you Fabien Potencier !! :D:D:D !! Congratulations for this promise, it's seem wonderfull The View layer, is totally different! We must work again with Documentation :p I hope Symfony 2, will be friendly with Eclipse PDT , as well with netbeans ... Is planning,

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-19 Thread Olivier
Another step on this issue... I've found a workaround: if I set the hydration mode to HYDRATE_NONE, I get the values as expected with several rows in the array. However, it's not so nice, since I have to do an array_combine to get the column names back in the array. If anyone would have a clue

Re: [symfony-users] Re: Error when checking out Symfony 2.0 SVN code

2010-02-19 Thread Fabian Lange
Hi, The directory was renamed in Git but obviously not on subversion correctly during the merge. I removed the directory by hand and it should now check out fine. I hope later merges from git do not bring it back up cheers Fabian On Fri, Feb 19, 2010 at 1:58 PM, Matt Robinson m...@lazycat.org

[symfony-users] How to get user object on libs to not get the erro The default context does not exist.

2010-02-19 Thread Nei Rauni Santos
I'm trying to write unit tests and all methods that I use sfContext::getInstance()-getUser() not work. I always get this error The default context does not exist. My libs check informations on user's attributes, so I need get the user object. I need fix it to another way but I didn't find a

Re: [symfony-users] Re: Certification programme

2010-02-19 Thread Lee Bolding
Is this +1 malarky any way to determine the viability of something? Surely, it would be better to put forward a reason WHY this would be good, and HOW it would benefit Symfony, yourself and your customers? Just a thought... you can +1 all you like, but without sufficient reasoning behind it, I

Re: [symfony-users] Re: Id being lost on update..

2010-02-19 Thread Eno
On Thu, 18 Feb 2010, Samuel Morhaim wrote: I had to define it, because initially it was giving me some headaches with just creating the model, so by adding it i got rid of the problem.. Then i created the auto generated CRUD which worked fine for edit, and then i started adding ajax

[symfony-users] Symfony 2 - Extremly Configurable

2010-02-19 Thread michael.pie...@googlemail.com
Very very very impressive Symfony 2 ... ! I watched parts of the conference (thanks to Ben Haines), i read the blogs, i watched the slides, i tried the sandbox ... really, very impressive. I also watched the presentation from Fabien himself (http:// www.slideshare.net/fabpot/symfony-20-revealed)

[symfony-users] How do you filter the options of a form combobox?

2010-02-19 Thread Patrick Leblanc
Hello Everyone, As the title say I'm unsure on how to do this. If i look inside my form class I can see what the options are with $this-widgetSchema['groups_list']-getChoices(). but how do you set them? Thank you! -- You received this message because you are subscribed to the Google Groups

[symfony-users] sfLive contest winner ...

2010-02-19 Thread Simone Fumagalli
I remember there was a sort of contest for the best review/picture/ tweet during the sfLive 2010 can we have the links for reviews and the photo ? Thanks -- Simone -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

[symfony-users] Re: Error when checking out Symfony 2.0 SVN code

2010-02-19 Thread heptat
Yeah, same here. Could it be the environment the repos is on is case sensitive, and Brent and my environment isn't? Anyway, the YAML directory is empty and the Yaml directory isn't. Can someone get rid of YAML please?! On Feb 18, 4:22 pm, brent960 brent.willia...@gmail.com wrote: I've just

[symfony-users] Resize images while upload without plugin

2010-02-19 Thread Antoine Delorme
Hi there, I got a problem, i'm trying to do a resize on images while I upload them. My problem there is i don't know where do I put my code to resize the picture, and how to save the caption in the db. I Already got the code for the resize and it work (it's from an old website of mine). I was

[symfony-users] Re: implementing PHP soapclient in action

2010-02-19 Thread Leon van der Ree
Hi Dagger, you can simply provide the location of the (local) wsdl to the constructor of your soap-client, just as is shown in the manual at php.net http://www.php.net/manual/en/soapclient.soapclient.php you can place the wsdl in your projects data-folder and refer to it with

[symfony-users] Admin generator, Doctrine, one-to-many relation

2010-02-19 Thread Johannes Trommer
Hello, I'm having a problem that and I was not able to figure it by myself. I want to create a backend for a gallery with the admin generator. When I open a Gallery I want display all pictures in it. Galleries and Pictures are stored in two seperate tables. How can I display all pictures

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-02-19 Thread Maxime Gréau
hi, look at svn history, the sfWidgetFormJQueryDate have an new option since 30/11/2009 (tichet b#5382) : 'date_widget', so you can use it like this : new sfWidgetFormJQueryDate(array('date_widget' = new sfWidgetFormDate())); the default format option is '%month%/%day%/%year%' for this widget.

[symfony-users] Tutorials / Differences in 1.x and 2.0

2010-02-19 Thread maxarbos
Hello, I am looking at starting to use (S)symfony again and now that 2.0 is scheduled to be released this year, is it still worth trying to learn the 1.x version? Since this will a new way of working with designers, would it be advisable to use 2.0 only (on smaller projects) to get familiar with

Re: [symfony-users] Symfony 2 - Extremly Configurable

2010-02-19 Thread Bruno Reis
Yes, That feeling of knowing where things are is also one of the reasons I´ve choosen symfony for my team. 2010/2/19 michael.pie...@googlemail.com michael.pie...@googlemail.com Very very very impressive Symfony 2 ... ! I watched parts of the conference (thanks to Ben Haines), i read the

[symfony-users] Re: Admin generator, Doctrine, one-to-many relation

2010-02-19 Thread Mikael
Hello, Not sure, but maybe the ahDoctrineEasyEmbeddedRelationsPlugin could help. I have a computer table and an interface table and this plugin has helped me to manage many interfaces for one computer. Regards Mikael On Feb 19, 12:04 pm, Johannes Trommer johannes.trom...@gmail.com wrote:

Re: [symfony-users] Resize images while upload without plugin

2010-02-19 Thread Syam
Hi, You can write your own class extending the sfValidatedFile class and put your code in it. You can found an concrete example on the excellent Symfony in the Cloud slides from Kris Wallsmith at sfLive2010 http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud (class example at slide

[symfony-users] create fieldsets in form class

2010-02-19 Thread Mikael
Hello, I'm using the sfAdminThemejRollerPlugin which leads me to use fieldsets to neatly present all my widgets in tabs. The generator.yml looks like this : form: class: BackendPcForm edit: display: Inventaire: [ name, num_cmd, num_serie, date_liv,

[symfony-users] Re: How to get user object on libs to not get the erro The default context does not exist.

2010-02-19 Thread Nei Rauni Santos
It worked for me, do you think it's a good solution? ?php class tools { /* * This code is used to allow get the user object on sf 1.3 * I usually used to $sf_user = sfContext::getInstance()-getUser(); * but it throw exception with the message: The default context does not exist. *

[symfony-users] Simple question...

2010-02-19 Thread Samuel Morhaim
If I have a field isActive and of course it returns 1 or 0 .. how can I change the class to return Active / Inacrive as a string, and not doing it on the view for each time i use it? Thank you. -- You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] Re: sfValidatorChoice always invalid!!

2010-02-19 Thread wueb
Any idea?? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit

Re: [symfony-users] Simple question...

2010-02-19 Thread Romain Pouclet
You could add a getStatus() method (or something like that) in your model class : public function getStatus() { return $this-isActive() ? 'Active' : 'Inactive'; } Le 19 févr. 2010 à 18:27, Samuel Morhaim a écrit : If I have a field isActive and of course it returns 1 or 0 .. how can I

Re: [symfony-users] Re: sfValidatorChoice always invalid!!

2010-02-19 Thread eMerzh
try to set keys as string? On Fri, Feb 19, 2010 at 18:30, wueb webmaster@gmail.com wrote: Any idea?? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe

Re: [symfony-users] create fieldsets in form class

2010-02-19 Thread Daniel Lohse
Plugin developer of ahDoctrineEasyEmbeddedRelationsPlugin here again. Can you come into IRC on freenode, please? I'm here: #symfony On 19.02.2010, at 17:57, Mikael wrote: Hello, I'm using the sfAdminThemejRollerPlugin which leads me to use fieldsets to neatly present all my widgets in

[symfony-users] Tool for sketching mockups?

2010-02-19 Thread Eno
Recently, there was a thread where someone asked about the tool used to draw the screens used in the Jobeet tutorial (http://www.symfony- project.org/jobeet/1_2/Doctrine/en/02). I have a sudden need to use a tool like that - anyone remember what it was called? -- You received this message

Re: [symfony-users] Tool for sketching mockups?

2010-02-19 Thread Andrei Dziahel
Hi. Well, there's similar one — Mockingbird (http://gomockingbird.com/). 2010/2/19 Eno symb...@gmail.com Recently, there was a thread where someone asked about the tool used to draw the screens used in the Jobeet tutorial ( http://www.symfony-project.org/jobeet/1_2/Doctrine/en/02). I have

Re: [symfony-users] sfLive contest winner ...

2010-02-19 Thread Stefan Koopmanschap
Hi Simone, I'm going to chase this for you :) Stefan On Fri, Feb 19, 2010 at 4:25 PM, Simone Fumagalli simone.fumaga...@gmail.com wrote: I remember there was a sort of contest for the best review/picture/ tweet during the sfLive 2010 can we have the links for reviews and the photo ? Thanks

Re: [symfony-users] Symfony 2 - Extremly Configurable

2010-02-19 Thread Fabien Potencier
Of course we will have a default directory structure, and sensible defaults for configuration. Actually, this is already the case if you have a look at the sandbox. Flexibility does not mean that you have to use it. For most people, the default will just work for them. But it's great to know

Re: [symfony-users] Re: Error when checking out Symfony 2.0 SVN code

2010-02-19 Thread Fabien Potencier
I have fixed the Git repository used to mirror SVN and removed the latest occurrence of YAML in the SVN. Everything should work as expected now. If you want to try out Symfony 2, the best is to use the sandbox (see symfony-reloaded.org). Fabien -- Fabien Potencier Sensio CEO - symfony lead

Re: [symfony-users] Re: sflive2010 Symfony Core Dev QA session

2010-02-19 Thread Stefan Koopmanschap
Awesome, very well done. This is just great :) On Thu, Feb 18, 2010 at 11:26 PM, Benjamin Haines ben.hai...@gmail.com wrote: You are welcome. Fabien's Symfony 2 video is uploading as I type this. Its pretty big, but will be available tomorrow 19th February Friday. On 18 Feb 2010, at 20:58,

[symfony-users] Re: Tool for sketching mockups?

2010-02-19 Thread Eno
Ive found it - they used Balsamiq Mockups: http://www.balsamiq.com/products/mockups Incidently, I came across a list of similar tools: http://www.onextrapixel.com/2009/07/15/the-importance-of-wireframes-in-web-design-and-9-tools-to-create-wireframes/ -- You received this message because you

[symfony-users] Re: General Questions about Symfony / Doctrine

2010-02-19 Thread a...@speedypin.com
Perhaps have a doctrine entity of 'userDedicatedDatabase' with enough credentials and crap declared in the entity that you can create/instanciate a database handle (like the ones in databases.yml) from the values of entity. the entity can also have business model methods to create the users

Re: [symfony-users] Tutorials / Differences in 1.x and 2.0

2010-02-19 Thread Gábor Fási
The 1.4 version will have 3 years of support, so it is definitely still worth learning. 2.0 is just a preview version right now, I believe a lot will change in the time till its release. No manual, no tutorial, no instructions - it's not worth writing them yet. However, you can read a quick tour

[symfony-users] disable site during migration

2010-02-19 Thread mbernasocchi
Hi, I'm setting up a script to execute migrations for my production server. here what I'd like to do: ssh prodServer 'symfony project:disable prod' #start deploying symfony project:deploy prod --go #update DB ssh prodServer 'symfony doctrine:generate-migrations-diff --env=prod' ssh prodServer

[symfony-users] Re: How to get user object on libs to not get the erro The default context does not exist.

2010-02-19 Thread rooster (Russ)
This is not a good solution as your libs will be referencing the context you create, and not the singleton that is running your app. It may seem to work, since the configuration will be identical - but it's really not a good solution. You have 2 options in my opinion. 1. Dirty: Create an

Re: [symfony-users] Re: Tool for sketching mockups?

2010-02-19 Thread Jose R. Prieto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I like very much ForeUI http://www.foreui.com/ Very simple, and works fine. The inconvenient? It isn't free :( El 19/02/10 21:19, Eno escribió: Ive found it - they used Balsamiq Mockups: http://www.balsamiq.com/products/mockups Incidently, I

[symfony-users] How to insert data from other actions.

2010-02-19 Thread Samuel Morhaim
Assuming the below schema.. I am doing the following: Within Campaign , I am showing a record, and within, I am showing a form for addressbook. So how can I get the name of the Campaign I am in, so that I can set it automatically into the form for AddressBook ? Something like.. ... hide the