[symfony-users] dynamically extending classes

2011-02-26 Thread himanshu
Hi, I want to extend base classes dynamically. Following explains my requirements. I have a table 'Property'. Columns are 'property_id', 'owner_id', 'name' and many more. So default there will be BaseProperty class, Property class extending BaseProperty class. I want to use mysql views. views

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

2011-02-26 Thread Jan Eichhorn
Hi, thanks for your help. Thats actually helps a lot. Greets Jan -- 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,

[symfony-users] Re: How to set up a situation where a comments table is used for multiple entities

2011-02-26 Thread Grzegorz Śliwiński
Michal's idea is one way, although personally wouldn't add that many fk's into Comment model. Each new model that will get commented, will result in modifying Comment table. If it'll grow up, ALTER TABLE might take long time. Second idea is to create association tables for each commented model

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

2011-02-26 Thread Javier Garcia
Ok, now I understand how this widget works..When you create this kind of widget, it actually creates two fields: autocomplete_my_field (the field that is showed and where you insert the data (values of the array elements) and my_field (a hidden field, where the keys are inserted). This widget

[symfony-users] Re: [Symfony2] Responding with a template at core.exception

2011-02-26 Thread Damon Jones
The config has changed since PR6, so if you are using PR6, it would be app.config: instead of framework:. On Feb 26, 10:13 am, Alexander Kachkaev alex.kachk...@gmail.com wrote: Thank you, Christophe. The idea is rather clear. Unfortunately, when I write framework: exception_controller:

Re: [symfony-users] Re: How to set up a situation where a comments table is used for multiple entities

2011-02-26 Thread Michał Piotrowski
W dniu 26 lutego 2011 16:36 użytkownik Grzegorz Śliwiński fi...@fizyk.net.pl napisał: Michal's idea is one way, although personally wouldn't add that many fk's into Comment model. Each new model that will get commented, will result in modifying Comment table. If it'll grow up, ALTER TABLE might

[symfony-users] Re: dynamically extending classes

2011-02-26 Thread Richtermeister
Hi Himanshu, this seems overly complicated. Since you're getting the same fields from the database regardless of which user is logged in, you should be fine using the same class to access those fields. The model shouldn't change depending on which user uses it, only different data should be

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

2011-02-26 Thread oscar balladares
It was actually easy. I also wanted to create custom labels from inside the Form Class. Lol Thanks for tha' tip. 2011/2/26 Jan Eichhorn j...@pixel-web.org Hi, thanks for your help. Thats actually helps a lot. Greets Jan -- If you want to report a vulnerability issue on symfony, please

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

2011-02-26 Thread Alex Pilon
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 this http://www.symfony-project.org/plugins/sfDoctrineFBAutocompletePlugin On Sat, Feb 26, 2011 at 11:23, Javier Garcia tirengar...@gmail.com wrote: Ok, now I understand how this widget

Re: [symfony-users] Re: How to set up a situation where a comments table is used for multiple entities

2011-02-26 Thread Alex Pilon
Thanks for that plug in link and the ideas. 2011/2/26 Grzegorz Śliwiński fi...@fizyk.net.pl Michal's idea is one way, although personally wouldn't add that many fk's into Comment model. Each new model that will get commented, will result in modifying Comment table. If it'll grow up, ALTER

Re: [symfony-users] Re: dynamically extending classes

2011-02-26 Thread himanshu
Thank you for your suggestion. I will rethink my design. Himanshu From: Richtermeister nex...@gmail.com To: Symfony users symfony-users@googlegroups.com Sent: Sat, 26 February, 2011 10:57:44 PM Subject: [symfony-users] Re: dynamically extending classes Hi

Re: [symfony-users] Re: dynamically extending classes

2011-02-26 Thread Gareth McCumskey
I will concur with Richter here. It is far better maintenance-wise to keep all your application logic in the app and not distribute that around into the database. The only time a view is of use is when an outside batch-script or cron job might use it as that is not directly related to your