Re: [symfony-users] Web hosting provider for Symfony 2? What do you recommend?

2011-02-28 Thread Chris Banford
Hi Oscar, I've had *excellent* success with Hetzner (very large, very dependable German hosting co.). http://www.hetzner.de/en/hosting/produkte_vserver/vq7 -Chris (we have simple shared hosting, managed and un-managed servers with them) Hi everybody. As everyone knows, PHP 5.3 is not

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-28 Thread Javier Garcia
Alex, what do you mean with It's maybe more along the lines of a feature that would be nice to have. Sorry because my english.. On 26 Feb, 20:27, Alex Pilon alex.pi...@gmail.com wrote: I don't think its a bug. It's maybe more along the lines of a feature that would be nice to have. Maybe try

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 04:38, oscar balladares a écrit : The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form component is what I hated about Symfony 1.x. Lets say the layout desinger tell us

[symfony-users] Re: Bundle HelloBundle does not contain any mapped entities.

2011-02-28 Thread Christian Schaefer
hmm.. I'm doing it almost the same way than you. $ php app/console doctrine:mapping:import HelloBundle xml (I use xml actually but that doesn't matter much) $ php app/console doctrine:generate:entities HelloBundle remember to delete all backups in HelloBundle/Entity/ (starting with a '~').

[symfony-users] Re: Web hosting provider for Symfony 2? What do you recommend?

2011-02-28 Thread catchamonkey
I'm sure there are others here that would also recommend Server Grove. Well priced, great support, and they know their Symfony (1 and 2) http://www.servergrove.com/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] Trying to get a list of tables/object for a database (propel)

2011-02-28 Thread noamicko
Hi all I'm trying to get a list of tables/objects in an existing database, that i already built using propel (via symfony's task manager) so i already have modules, and a yaml configuration. The main purpose on this is to index the data for few tables, but since the tables are quite dynamic and

[symfony-users] [Symfony 2] Custom getter validation method question

2011-02-28 Thread Gustavo Adrian
Hi all, I'm using the getter validation feature of the Validator component. Is there a way to change the resulting mapping name of the property? I explain myself: If I have the validation method named isAddressValid, the resulting property name is addressValid. But in my case I'd it to be only

Re: [symfony-users] [Symfony 2] Custom getter validation method question

2011-02-28 Thread Bernhard Schussek
2011/2/28 Gustavo Adrian comfortablynum...@gmail.com: If I have the validation method named isAddressValid, the resulting property name is addressValid. But in my case I'd it to be only address so I can map the error to my form field. Is this possible? The answer is no. You'd have to do that

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-28 Thread oscar balladares
In that case, I totally agree! [?] 2011/2/28 Christophe COEVOET s...@notk.org Le 28/02/2011 04:38, oscar balladares a écrit : The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form

Re: [symfony-users] [Symfony 2] Custom getter validation method question

2011-02-28 Thread Gustavo Adrian
Ok, thanks for the quick answer! On Mon, Feb 28, 2011 at 1:21 PM, Bernhard Schussek bschus...@gmail.comwrote: 2011/2/28 Gustavo Adrian comfortablynum...@gmail.com: If I have the validation method named isAddressValid, the resulting property name is addressValid. But in my case I'd it to be

[symfony-users] Re: [Symfony 2] How to use the Assetic Bundle

2011-02-28 Thread jdewit
Kris Wallsmith has a forked symfony-sandbox configured with Assetic at https://github.com/kriswallsmith/symfony-sandbox I've tried copying his configuration settings but haven't got it to work yet either. I'm getting the error: The asset manager cache has not been warmed. Here are the

Re: [symfony-users] Web hosting provider for Symfony 2? What do you recommend?

2011-02-28 Thread Gareth McCumskey
If you feel like being a bit of a DIY man, you could setup your own server on one of the cloud providers like Linode (www.linode.com).Their cheaper option is US$20 which I use and never had a problem. On Mon, Feb 28, 2011 at 6:34 AM, oscar balladares liebegr...@gmail.comwrote: Hi everybody.

Re: [symfony-users] Trying to get a list of tables/object for a database (propel)

2011-02-28 Thread Gareth McCumskey
Why not take a look at what the symfony command symfony propel:build-schema does? That command is used to build model from an existing database. If you investigated how the code of that command did it it would probably show you how to accomplish it yourself. On Mon, Feb 28, 2011 at 12:04 PM,

[symfony-users] [Symfony2] {DIC} Dynamic list of service instances as parameter to another service?

2011-02-28 Thread Christian Schaefer
hi all, consider the following XML. ?xml version=1.0 encoding=UTF-8 ? container xmlns=http://www.symfony-project.org/schema/dic/services; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.symfony-project.org/schema/dic/ services

[symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
Hi everybody. I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\ package-namespace So it is impossible to me to bind Forms to Entities and flush them into the database. According to Docs, you should use EntityToIDTransformer, CollectionToChoiceTransformer, or so, to be able to

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 22:16, oscar balladares a écrit : Hi everybody. I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\ package-namespace So it is impossible to me to bind Forms to Entities and flush them into the database. According to Docs, you should use

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
Before anything, thanks a lot... This is amazing, I was covering the guide and I saw the EntityChoiceField, but for some reason I decided to try the Transformers (not the movie Plop! - a terrible joke :( And I thought it was the only way. Thanks a lot for that ultra quick answer. You save my

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 22:32, oscar balladares a écrit : Before anything, thanks a lot... This is amazing, I was covering the guide and I saw the EntityChoiceField, but for some reason I decided to try the Transformers (not the movie Plop! - a terrible joke :( And I thought it was the only way.

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
Thanks again! 2011/2/28 Christophe COEVOET s...@notk.org Le 28/02/2011 22:32, oscar balladares a écrit : Before anything, thanks a lot... This is amazing, I was covering the guide and I saw the EntityChoiceField, but for some reason I decided to try the Transformers (not the movie Plop!

[symfony-users] Re: Web hosting provider for Symfony 2? What do you recommend?

2011-02-28 Thread Damon Jones
+1 from me for Server Grove. Although you don't need it, having a hosting provider that knows symfony/Symfony2 and are always glad to help out with anything is definitely advantageous. On Feb 27, 11:34 pm, oscar balladares liebegr...@gmail.com wrote: Hi everybody. As everyone knows, PHP 5.3

[symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-02-28 Thread oscar balladares
Hi everybody. I have an entity which is validated via validation.yml file. Here is an extract of it: Sensio\HelloBundle\Entity\Person: properties: phone: AssertType: integer But this is tricky, because when I submit the form, the AssertType throws me a

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-02-28 Thread Gustavo Adrian
In this particular case I do a type casting before binding the data to the object's property. So: $value = ( int ) $dataFromPost; $object-setIntegerValue( $value ); And then I force the user to type integer values on the form field via javascript. If he/she sends a value that's not an integer

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-02-28 Thread oscar balladares
Hi Gustavo. Thanks for responding [?] I had thought about Javascript validation, but what itches my head is why a validator (almost tied in all user cases to the Form component) wouldn't do what it is expected to do. I try to cast the input value, but when I cast something like this happens:

[symfony-users] [sf2] March Release

2011-02-28 Thread Craige
Hey Guys, Just wondering if sf2 is still planned for a final March release, or is this going to be overshot? Is it fair to say that one could start developing with a snapshot from GitHub without TOO much trouble when the final release comes? - Craige -- If you want to report a vulnerability

Re: [symfony-users] Re: Bundle HelloBundle does not contain any mapped entities.

2011-02-28 Thread Florian Semm
maybe it's a config-problem. Try this: doctrine: orm: mappings: HelloBundle: { type: yaml, dir: path/to/mapping/dir } The dir is relative to the bundle dir. Am 28.02.2011 18:14, schrieb oscar balladares: Do you have your entity mapped in

[symfony-users] entity mapping of library class in OOPs paradigm

2011-02-28 Thread charanjeet
Hi I have got doctrine queries that operate on multiple tables and even across databases. Where should i place these? Model classes dont seem appropriate for it. if I place these in library class, the code doesn't remain structured and i will end up having a class with lots of static