[symfony-users] Aw: Re: not a valid document or mapped super class

2011-06-08 Thread Conrad
you probably forgot to add the bundle name in config.yml to your mappings array: doctrine: dbal: default_connection: default connections: default: driver: %database_driver% host: %database_host% dbname: %datab

[symfony-users] Aw: Re: Can't get MongoDB working

2011-06-03 Thread Conrad
Thanks Mathias, I will try it next week (hopefully :) -- 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 t

Aw: Re: [symfony-users] Re: How to deal with Form Collection on Symfony2 Beta ?

2011-05-26 Thread Conrad
@user123: check out the form theming: http://symfony.com/doc/current/book/forms.html#form-theming -- 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 user

[symfony-users] Aw: Re: Mixing Locale Strings for URL only

2011-05-25 Thread Conrad
thanks for your reply! But wouldn't it then be necessary to change all saved translation locales to the shorter ones as well? And I guess it is neccessary to change some working parts in the programm as well.. It would be nice if I could put a filter between the routing analysis for the transla

[symfony-users] [Symfony2] Mixing Locale Strings for URL only

2011-05-25 Thread Conrad
my code? I know that some languages will then be missed out like british english, canadian french or what ever.. but thats ok.. Cheers, Conrad -- 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] Aw: Re: [Symfony2 BETA2] Can't get MongoDB working

2011-05-25 Thread Conrad
I don't. Need this working as well. Thanks for finding this ticket :) -- 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 gr

[symfony-users] Aw: Re: Re : Re: Doctrine2 cache with Symfony2

2011-05-19 Thread Conrad
are there avaiable options to cache the query/result with Doctrine MongoDB ODM as well? I tried adding 'query_cache_driver' or 'result_cache_driver' but these options are not known and throw an error.. would be nice to redue the necessary queries to the minimum... -- If you want to report a vu

[symfony-users] Custom Doctrine ODM Mapping Types

2011-05-17 Thread Conrad
#x27;t use this class with normal arrays (only references seem to work) unless I can add a custom mapping where I can call $value->toArray() internally.. Thanks, Conrad -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

Aw: Re: [symfony-users] Twig question?

2011-05-12 Thread Conrad
You can make a form theme to achieve this: http://symfony.com/doc/current/cookbook/form/twig_form_customization.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 subscribed to the Google Gr

Aw: Re: [symfony-users] How to load a Doctrine 2 Custom Mapping

2011-05-07 Thread Conrad
Hi, I'm interested in this as well, (in my case for the ODM) - are there any news on this feature yet? Cheers, Conrad -- 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 G

Aw: Re: [symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Conrad
Thanks a lot Donald and Christophe -- 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@goo

[symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Conrad
Hi all, is it possible to get the current environment from inside the controller? I'd like to separate some ajax json return messages for developers with the stacktrace and for the public with a nice 'oops, something went wrong' :) Thanks, Conrad -- If you want to report a vuln

Re: [symfony-users] Aw: Symfony 2 beta1: How to translate form error messages?

2011-05-06 Thread Conrad Barthelmes
okinen > Thanks for the tip Conrad. > > I got it working by creating file > MyBundle/Resources/translations/validators.fi.yml > > > > However, I needed to map English text to Finnish: *This value should not > be blank: Pakollinen kenttä* > > > > The book will advise

[symfony-users] Aw: Symfony 2 beta1: How to translate form error messages?

2011-05-06 Thread Conrad
Validation messages are usally listed under the domain 'validatiors'. so for me, 'validators.en_US.yml' works without any problems :) -- 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

[symfony-users] Re : [Symfony 2] Form Date Field Format

2011-05-05 Thread Conrad
All I can say is that I'd be interested in this issue too.. (haven't figured out out either).. Especially in case of i18n when other languages have a different formatting.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You receive

[symfony-users] Re: [new Forms] Custom Labels in FormBuilder

2011-05-04 Thread Conrad
No it's still the beta 1 version.. But glad to know that it should work :) Then I'll check this up again with the next beta.. -- 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

Aw: Re: Aw: Re: [symfony-users] [sf2] [FOS] Authenticate with email or username

2011-05-04 Thread Conrad
I just tried it with adding all classes.. with no success... -- 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

Aw: Re: [symfony-users] [sf2] [FOS] Authenticate with email or username

2011-05-03 Thread Conrad
Thanks Jeremy for this detailed explanation :) Sorry for my late answer, I just had time to focus on this issue again. First of all, I read the Security User Guideseveral times, which helped me a lot to understand how

Aw: Re: [symfony-users] Translating form labels in custom domain don't work

2011-05-03 Thread Conrad
How do you customize the labels? Or do you use them as they are to put them into your translation files? -- 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 "symfo

[symfony-users] [Symfony2][FOS UserBundle] Custom registration "This form should not contain extra fields"

2011-05-03 Thread Conrad
ion itself), except when errors are shown, I always get the message "This form should not contain extra fields" If anyone knows how to tell the form that my fields are the one that count, I'd very appreciate it :) this is the UserFormType: http://pastebin.com/g79Eyq2D Thanks, C

[symfony-users] [sf2][new Forms] Custom Labels in FormBuilder

2011-05-02 Thread Conrad
ere I need to access every item manually..) Thanks, Conrad -- 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 grou

Aw: Re: [symfony-users] [sf2] Unrecognized options "secret" under "framework.csrf_protection" while updating via git

2011-05-01 Thread Conrad
I had the issue too, then I print_r'ed the $parameters array in SecretStep.php and found out that this one is using the real parameters.ini file.. so just move your secret parameter to parameters.ini and use a placeholder in the config.yml instead: // parameters.ini: secret=changemetosomething

Aw: Re: Aw: Re: Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
Alright, thanks for cheering me up :) I guess it needs some guts anyway to do it all the bleeding edge way ;) Thanks for the nice work and have a good weekend! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this messag

Aw: Re: Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
ok Thanks, then I need to roll back to pr12 and wait for it to be avaiable -- 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 th

Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
igger" trouble? Conrad -- 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

[symfony-users] Aw: DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
nevermind, I got it from here: https://github.com/symfony/DoctrineMongoDBBundle git submodule add git://github.com/symfony/DoctrineMongoDBBundle.git Symfony/vendor/symfony/src/Symfony/Bundle/DoctrineMongoDBBundle -- If you want to report a vulnerability issue on symfony, please send it to se

[symfony-users] Aw: DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
nevermind, I got it from here: https://github.com/symfony/DoctrineMongoDBBundle git submodule add git://github.com/symfony/DoctrineMongoDBBundle.git Symfony/vendor/symfony/src/Symfony/Bundle/DoctrineMongoDBBundle -- If you want to report a vulnerability issue on symfony, please send it to se

[symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
I was just trying to update my project from pr12 to beta and found out that the DoctrineMongoDBBundle is missing... did it move somewhere else? Where can I get it? Thanks, Conrad -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] Re: Symfony2 and Netbeans

2011-04-21 Thread Conrad Barthelmes
eginning when I start the sf2 project.. 2011/4/21 Gayatri > How did you create the default directory structure for Symfony2? > Do you unpack the archive every time and copy the folders in your > project directory? > > On Apr 8, 10:55 am, Conrad wrote: > > I'm working

[symfony-users] Aw: Re: basic form validation

2011-04-19 Thread Conrad
i have a similar problem using annotations. I also setDataClass() to point to the model file, but the annotations are ignored completely in the FOS new user form... (although annotions:true is set in the configs)... -- If you want to report a vulnerability issue on symfony, please send it to s

[symfony-users] [sf2] [FOS] Authenticate with email or username

2011-04-19 Thread Conrad
Hi all, how can I modify the login process to allow the user to authenticate both with email address or username for the FOS UserBundle? I already looked through the default configuration but didnt find it.. Cheers, Conrad -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: [Symfony2] Form error messages related to the field in twig

2011-04-12 Thread Conrad
I need to correct, the {% for child in field %} is a sub-form here, it should look like this: {% for field in form %} {% if not field.isHidden %} {{ form_label(field) }} {{ form_field(field) }} {{ form_errors(field) }} {% endif %} {% endfor %} -- If you want to report a v

[symfony-users] [Symfony2] Form error messages related to the field in twig

2011-04-12 Thread Conrad
, error in form.errors %} {{ loop.index0 }} {{ key }} {% trans error.messageTemplate with error.messageParameters from 'validators' %} {% endfor %} {% endif %} What am I doing wrong here? Thanks, Conrad -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: [Symfony2] Own validation for FOS UserBundle won't work

2011-04-11 Thread Conrad
Now I found out that Annotation validation is working as expected.. But why doesn't the yml or xml file validation work?? One last idea came to my mind: I built my model also with annotations, so maybe the yml validation only works if there is a yml model too? But this doesn't make sense, only

[symfony-users] Re: Symfony2 and Netbeans

2011-04-11 Thread Conrad
this is also a little workaround that works well if you use a service quite often, here the doctrine odm document manager /** * @return Doctrine\ODM\MongoDB\DocumentManager */ private function getDM() { return $this->get('doctrine.odm.mongodb.document_manager'); } If you use it in anoth

[symfony-users] Re: [Symfony2] Own validation for FOS UserBundle won't work

2011-04-10 Thread Conrad
problem with the usage of the validation itself and doesn't have anything todo with the FOS from my first thougth.. Thanks, Conrad -- 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 t

[symfony-users] Re: Symfony2 and Netbeans

2011-04-10 Thread Conrad
I have the same problem, and unfortunately I take a look to the API (or source) of this class to see what's possible.. I don't think this is going to be an easy part for the IDE, as String paramaters usually don't get evaluated on 'development time'.. Because the depency injector is actually a

[symfony-users] [Symfony2] Own validation for FOS UserBundle won't work

2011-04-08 Thread Conrad
61 Any help is very appreciated. Thanks, Conrad -- 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 grou

Re: [symfony-users] Symfony2 and Netbeans

2011-04-07 Thread Conrad
I'm working in Netbeans too for a couple of days in a sf2 project and it works very nice - but I didn't tell Netbeans that this is a Symfony project, just a regular PHP.. Autocomplete and all the nice dev stuff is also very good. Check out the Netbeans Twig Plugin (not stable or finished yet but

[symfony-users] [Symfony2] [ODM] Best Practice SoftDelete

2011-04-07 Thread Conrad
;s soft_delete.xml<https://github.com/doctrine/mongodb-odm-softdelete-bundle/blob/master/Doctrine/ODM/MongoDB/Symfony/SoftDeleteBundle/Resources/config/soft_delete.xml>I read that it should actually be part of the DocumentManager. Or maybe I missunderstand it? Any advice on how this nice

[symfony-users] Re: [PR10] "String" does not exist

2011-04-07 Thread Conrad
Thanks for your reply, yes I found something.. and it helped a bit :) doctrine also made a datatype out of it: /** * Set profileImageUrl * * @param String $profileImageUrl */ public function setProfileImageUrl(\String $profileImageUrl) { $this->profileImageU

[symfony-users] [sf2] [PR10] "String" does not exist

2011-04-07 Thread Conrad
ay/hint out of this.. I just don't find out where this 'String' is coming from... Thanks, Conrad -- 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: "String" does not exist

2011-04-07 Thread Conrad
I struggeld with the Boolean type yesterday evening with no success and gave up for yesterday... this morning - everything worked fine... I can register, login, logout, change everything the FOS user bundle provides.. maybe that Boolean thing was really something in the cache that I corrected w

[symfony-users] Re: "String" does not exist

2011-04-07 Thread Conrad
No I dont have that Class - the setProfileImageUrl method I was posting was auto-generated by doctrine using the old documentation /** @Field(type="String") */ I had.. Maybe that's why Doctrine thought of it as it would be a root-namespaced Class.. -- If you want to report a vulnerability issu

[symfony-users] Re: [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
Nevermind Stof, I found (yes, lol) the security configuration at the bottom of the documentation and now I have the login field :) Thanks On Apr 5, 6:25 pm, Christophe COEVOET wrote: > Le 05/04/2011 16:47, Conrad a crit :> Hi all, > > i have just installed sf2 pr10 using mongodb and

[symfony-users] Re: [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
04/2011 16:47, Conrad a crit :> Hi all, > > i have just installed sf2 pr10 using mongodb and got the FOS > > UserBundle. All seems properly installed, I can successfully create a > > user in the command line. But when I try to access any of the FOS > > routes I get redir

[symfony-users] [sf2] [FOS] 310 Too many Redirects Error

2011-04-05 Thread Conrad
add an 'exit;' to loginAction() the method does not seem to get executed... I think there is an routing/configuration issue.. does anyone have an idea? Thanks, Conrad -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You rec