Re: [symfony-users] Package template/layout as a plugin to re-use across sites?

2010-11-03 Thread Gareth McCumskey
Why not just setup a centralised CDN? This way your templates can just
include the html content for things like header blocks with logo's etc in a
consistent way and also create a centralised point that if edited will
automagically update all related sites using it?

On Tue, Nov 2, 2010 at 12:52 AM, John Kary johnk...@gmail.com wrote:

 Our University is using symfony 1.x for many different internal
 applications, and we want to easily brand them with our University's
 web template. I figured creating this inside a plugin would be best,
 so we could easily update the plugin when we tweak the template design
 instead of copying around a layout file to app/frontend/templates/
 layout.php.

 I looked through documentation and didn't see how I could package a
 layout.php file as a plugin. Is this possible, or how would I go about
 doing it?

 How have you kept your branding consistent across multiple symfony
 installations?

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] I18N: separate country and language?

2010-11-03 Thread Sebastien Armand [Pink]
Hi everyone,

The app we're working on will need to be I18N, and it will need this under
different conditions:

   - The app may be installed for clients in different countries (one
   install per client)
   - In one country they might need multiple languages (multicultural teams)

However let's say that I am showing a Contract in Japan, I want to use the
correct number format for Yen, no matter that my user browses my contract
page in english or in japanese.

My guess is that no such thing exists out of the box in Symfony and that a
solution could be to have a 'default_culture' setting defined for the app
and write my own helper for format_number that would force this default
culture rather than use the user one.

Also not sure how to deal with things when we start having on the same
install contracts based on different currencies that should be shown with a
number format linked to the currency rather than to the user's culture and
language.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: I18N: separate country and language?

2010-11-03 Thread Raphael Schumacher
Hi, I have an answer to your question in
   http://forum.symfony-project.org/viewtopic.php?f=22t=30678start=0
Regards, RAPHAEL

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread JoJo
Hello everyone,

I have a question not very technical but quite structural.

In my modules, I use some partials to complete the layout. And in these
partials, I use some javascript functions. So when page loaded, these
javascript functions are added in the middle of template.

I think that it is not very clean do display js in that way, because
normally they should be added between head/head, but these js functions
are spécificaly for its partials and in several js functions, i need the
objects passed from action or component.

So can anyone suggest what is the best way to implement these javascript
functions please.

Thanks in advance.

Best Regards,

JoJo

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
We have used slots as a way to do that so that you can create a slot at the
end of your layout (just before /body) and your partials can then load the
javascript it needs into that slot.

On Wed, Nov 3, 2010 at 11:55 AM, JoJo jojoyangd...@gmail.com wrote:

 Hello everyone,

 I have a question not very technical but quite structural.

 In my modules, I use some partials to complete the layout. And in these
 partials, I use some javascript functions. So when page loaded, these
 javascript functions are added in the middle of template.

 I think that it is not very clean do display js in that way, because
 normally they should be added between head/head, but these js functions
 are spécificaly for its partials and in several js functions, i need the
 objects passed from action or component.

 So can anyone suggest what is the best way to implement these javascript
 functions please.

 Thanks in advance.

 Best Regards,

 JoJo

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
Forgot the link:
http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots

On Wed, Nov 3, 2010 at 11:55 AM, JoJo jojoyangd...@gmail.com wrote:

 Hello everyone,

 I have a question not very technical but quite structural.

 In my modules, I use some partials to complete the layout. And in these
 partials, I use some javascript functions. So when page loaded, these
 javascript functions are added in the middle of template.

 I think that it is not very clean do display js in that way, because
 normally they should be added between head/head, but these js functions
 are spécificaly for its partials and in several js functions, i need the
 objects passed from action or component.

 So can anyone suggest what is the best way to implement these javascript
 functions please.

 Thanks in advance.

 Best Regards,

 JoJo

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Alex Pilon
You could also put that js into external js files and use use_javascript to
have each partial include the related external js file when it loads into
the template.

On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey gmccums...@gmail.com wrote:

 Forgot the link:
 http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots

 On Wed, Nov 3, 2010 at 11:55 AM, JoJo jojoyangd...@gmail.com wrote:

 Hello everyone,

 I have a question not very technical but quite structural.

 In my modules, I use some partials to complete the layout. And in these
 partials, I use some javascript functions. So when page loaded, these
 javascript functions are added in the middle of template.

 I think that it is not very clean do display js in that way, because
 normally they should be added between head/head, but these js functions
 are spécificaly for its partials and in several js functions, i need the
 objects passed from action or component.

 So can anyone suggest what is the best way to implement these javascript
 functions please.

 Thanks in advance.

 Best Regards,

 JoJo

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
His one concern is having javascript included in the middle of HTML isntead
of all at the end of the html. This tactic would still insert the javascript
in the middle of everything.

On Wed, Nov 3, 2010 at 12:57 PM, Alex Pilon alex.pi...@gmail.com wrote:

 You could also put that js into external js files and use use_javascript to
 have each partial include the related external js file when it loads into
 the template.


 On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey gmccums...@gmail.comwrote:

 Forgot the link:
 http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots

 On Wed, Nov 3, 2010 at 11:55 AM, JoJo jojoyangd...@gmail.com wrote:

 Hello everyone,

 I have a question not very technical but quite structural.

 In my modules, I use some partials to complete the layout. And in these
 partials, I use some javascript functions. So when page loaded, these
 javascript functions are added in the middle of template.

 I think that it is not very clean do display js in that way, because
 normally they should be added between head/head, but these js functions
 are spécificaly for its partials and in several js functions, i need the
 objects passed from action or component.

 So can anyone suggest what is the best way to implement these javascript
 functions please.

 Thanks in advance.

 Best Regards,

 JoJo

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Alex Pilon
 (613) 608-1480

  --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Textarea onclick event?

2010-11-03 Thread Eno
On Tue, 2 Nov 2010, Parijat Kalia wrote:

 Oh guys, please chill out, none of that was for either of you, it was for
 Mr.Eno, because he typically comes up with smart ass  sentences like those
 way too often.

I haven't posted here for months.

I agree with the smart part - I had the correct answer when noone else did 
(not that you thanked me).

  And yes, the issue that I was dealing with is Javascript, but in a symfony
 tags context

The problem had nothing to do with symfony.

 I did the 10 sec google search several
 times, and read the API, before I decided to seek help here.

10 seconds is hardly thorough research... OK maybe you have ADD but 
still...




-- 


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Textarea onclick event?

2010-11-03 Thread Alex Pilon
Eno, I think you need to review the thread. The problem was that Parijat was
calling

textarea_tag('hint-box','','size=70x4',array('onclick'='javascript:alert(yo)'));

So as you can see there are four arguments here. Parijat stated that the
onclick attribute was not being rendered. Why not? Because the function only
accepts three parameters: $name, $content, $options. So what is the problem?
Is it javascript? No. The javascript is not being rendered yet.

So maybe *you* have ADD and cannot fully read questions.

You lack professionalism. The issue is over and you had to dish it out with
the classic oh you couldve googled. Sure but the issue has been solved and
so you are not adding anything to the conversation or making any
constructive statement, just as you are continuing to bitch now.

I realize that I am adding little to this thread myself in posting this,
however I must defend the Parijat as he clearly (by my above recap of the
problem) was having a problem with symfony and NOT with javascript. The
onclick attribute was NOT even appearing on the textarea.

Anyways, have yourself a good day sir.

On Wed, Nov 3, 2010 at 08:42, Eno symb...@gmail.com wrote:

 On Tue, 2 Nov 2010, Parijat Kalia wrote:

  Oh guys, please chill out, none of that was for either of you, it was for
  Mr.Eno, because he typically comes up with smart ass  sentences like
 those
  way too often.

 I haven't posted here for months.

 I agree with the smart part - I had the correct answer when noone else did
 (not that you thanked me).

   And yes, the issue that I was dealing with is Javascript, but in a
 symfony
  tags context

 The problem had nothing to do with symfony.

  I did the 10 sec google search several
  times, and read the API, before I decided to seek help here.

 10 seconds is hardly thorough research... OK maybe you have ADD but
 still...




 --


 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] What exactly means MODELS

2010-11-03 Thread Marcio Pozzato
Hi gays,

Please, in Day 3-Jobeet Tutorial, what exactly means Models?
After creating the Jobeet Database, they said at the ORM Section *create
the database tables*, but, next, they said build your *models*:

The ORM
Thanks to the database description from the schema.yml file, we can use some
Doctrine built-in tasks to generate the SQL statements needed to *create the
database tables*:
First in order to generate the SQL you must build your *models *from your
schema files.
$ php symfony doctrine:build --model
Now that your *models *are present you can generate and insert the SQL.
$ php symfony doctrine:build --sql

Thanks.

Marcio Pozzato.
Rio - Brazil.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] What exactly means MODELS

2010-11-03 Thread Alex Pilon
Hey,

First off, the appropriate spelling is hi guys not hi gays. In some
circles you'll be sodomized for that sort of talk (anyone??).

Secondly, the term models is used to refer to the code representation of
database tables. So it means that there is a php class that maps to a
database tables and includes all sorts of methods to interact with the data
represented by the model. In short it is data abstraction.

If none of that makes sense to you then I would recommend doing some
research on the MVC software architecture pattern.

Thanks!

On Wed, Nov 3, 2010 at 10:17, Marcio Pozzato mspozz...@gmail.com wrote:

 Hi gays,

 Please, in Day 3-Jobeet Tutorial, what exactly means Models?
 After creating the Jobeet Database, they said at the ORM Section *create
 the database tables*, but, next, they said build your *models*:

 The ORM
 Thanks to the database description from the schema.yml file, we can use
 some Doctrine built-in tasks to generate the SQL statements needed to *create
 the database tables*:
 First in order to generate the SQL you must build your *models *from your
 schema files.
 $ php symfony doctrine:build --model
 Now that your *models *are present you can generate and insert the SQL.
 $ php symfony doctrine:build --sql

 Thanks.

 Marcio Pozzato.
 Rio - Brazil.

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] What exactly means MODELS

2010-11-03 Thread Marcio Pozzato
Alex,
Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
About Models your concepts are quite for me.
M. Pozzato

2010/11/3 Alex Pilon alex.pi...@gmail.com

 Hey,

 First off, the appropriate spelling is hi guys not hi gays. In some
 circles you'll be sodomized for that sort of talk (anyone??).

 Secondly, the term models is used to refer to the code representation of
 database tables. So it means that there is a php class that maps to a
 database tables and includes all sorts of methods to interact with the data
 represented by the model. In short it is data abstraction.

 If none of that makes sense to you then I would recommend doing some
 research on the MVC software architecture pattern.

 Thanks!

 On Wed, Nov 3, 2010 at 10:17, Marcio Pozzato mspozz...@gmail.com wrote:

 Hi gays,

 Please, in Day 3-Jobeet Tutorial, what exactly means Models?
 After creating the Jobeet Database, they said at the ORM Section *create
 the database tables*, but, next, they said build your *models*:

 The ORM
 Thanks to the database description from the schema.yml file, we can use
 some Doctrine built-in tasks to generate the SQL statements needed to *create
 the database tables*:
 First in order to generate the SQL you must build your *models *from your
 schema files.
 $ php symfony doctrine:build --model
 Now that your *models *are present you can generate and insert the SQL.
 $ php symfony doctrine:build --sql

 Thanks.

 Marcio Pozzato.
 Rio - Brazil.

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Alex Pilon
 (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Marcio Pozzato

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] What exactly means MODELS

2010-11-03 Thread Alex Pilon
M. Pozzato, No worries, just wanted to give you a heads up and to help you
improve your English. Glad my explanation helped.

Cheers

On Wed, Nov 3, 2010 at 10:49, Marcio Pozzato mspozz...@gmail.com wrote:

 Alex,
 Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
 About Models your concepts are quite for me.
 M. Pozzato

 2010/11/3 Alex Pilon alex.pi...@gmail.com

 Hey,

 First off, the appropriate spelling is hi guys not hi gays. In some
 circles you'll be sodomized for that sort of talk (anyone??).

 Secondly, the term models is used to refer to the code representation of
 database tables. So it means that there is a php class that maps to a
 database tables and includes all sorts of methods to interact with the data
 represented by the model. In short it is data abstraction.

 If none of that makes sense to you then I would recommend doing some
 research on the MVC software architecture pattern.

 Thanks!

 On Wed, Nov 3, 2010 at 10:17, Marcio Pozzato mspozz...@gmail.com wrote:

 Hi gays,

 Please, in Day 3-Jobeet Tutorial, what exactly means Models?
 After creating the Jobeet Database, they said at the ORM Section *create
 the database tables*, but, next, they said build your *models*:

 The ORM
 Thanks to the database description from the schema.yml file, we can use
 some Doctrine built-in tasks to generate the SQL statements needed to 
 *create
 the database tables*:
 First in order to generate the SQL you must build your *models *from
 your schema files.
 $ php symfony doctrine:build --model
 Now that your *models *are present you can generate and insert the SQL.
 $ php symfony doctrine:build --sql

 Thanks.

 Marcio Pozzato.
 Rio - Brazil.

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Alex Pilon
 (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Marcio Pozzato

  --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Admin Generator / PKs

2010-11-03 Thread xpanshun
Hi all,


I've seen this question asked before a lot but from years ago--so
there wasn't any working response. I am hoping now that its 2010, that
there is a solution...

I am using Symfony 1.4. I am currently working with the admin
generator and I have some primary key fields that are NOT numeric auto-
increment. These fields are varchar that I need the admin to input
manually.

Is there a way to get such a primary key--or any primary key field to
be editable or created new on the backend?


Thanks in advance!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread brillenfux
Hi,

I have to integrate a very bad legacy database and I'd have to specify
things in the model extensively. There are fields (like contact_id)
that are named inconsistently all through the database for example
(like contact, contactid, Contact, Kontakt, KontaktID etc.) also there
are fields with random names (like ext which is in fact a group_id
field).
How many of the field references in the code etc are hard-coded? How
extensively can I design the model. What obstacles will I see?
Is there a something comprehensive to read about that topic?

Thanks,
Enno

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Trying to manage the credentials of the actions

2010-11-03 Thread Javier Garcia
Hi,

we want to manage the credentials of the actions of the backend from
the backend.

How to get the list of the actions of an app? After that we could show
the credential of each one through getCredential().

2nd question: i found the function to get the credential of an action
(getCredential()), but how to _set_ the credentials? I didn't find any
setCredential() function...

Javi

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread xpanshun
Also, is there a way to make it so that primary key fields are even
viewable? It seems they are hidden by default...

On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
 Hi all,

 I've seen this question asked before a lot but from years ago--so
 there wasn't any working response. I am hoping now that its 2010, that
 there is a solution...

 I am using Symfony 1.4. I am currently working with the admin
 generator and I have some primary key fields that are NOT numeric auto-
 increment. These fields are varchar that I need the admin to input
 manually.

 Is there a way to get such a primary key--or any primary key field to
 be editable or created new on the backend?

 Thanks in advance!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread xpanshun
Also, is there a way to make it so that primary key fields are even
viewable on the edit front? It seems they are hidden by default...

On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
 Hi all,

 I've seen this question asked before a lot but from years ago--so
 there wasn't any working response. I am hoping now that its 2010, that
 there is a solution...

 I am using Symfony 1.4. I am currently working with the admin
 generator and I have some primary key fields that are NOT numeric auto-
 increment. These fields are varchar that I need the admin to input
 manually.

 Is there a way to get such a primary key--or any primary key field to
 be editable or created new on the backend?

 Thanks in advance!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
I've only ever used the default.. but would it be a sufficient solution to
add an extra column to your model that holds this admin typed in key? You
can use indices to mark them as unique..

On Wed, Nov 3, 2010 at 12:56, xpanshun srhen...@gmail.com wrote:

 Also, is there a way to make it so that primary key fields are even
 viewable? It seems they are hidden by default...

 On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
  Hi all,
 
  I've seen this question asked before a lot but from years ago--so
  there wasn't any working response. I am hoping now that its 2010, that
  there is a solution...
 
  I am using Symfony 1.4. I am currently working with the admin
  generator and I have some primary key fields that are NOT numeric auto-
  increment. These fields are varchar that I need the admin to input
  manually.
 
  Is there a way to get such a primary key--or any primary key field to
  be editable or created new on the backend?
 
  Thanks in advance!

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread xpanshun
@ Alex,

I guess that is possible, but I was hoping for an easier way like
making some type of change in the generator.yml or something of that
nature...

On Nov 3, 1:04 pm, Alex Pilon alex.pi...@gmail.com wrote:
 I've only ever used the default.. but would it be a sufficient solution to
 add an extra column to your model that holds this admin typed in key? You
 can use indices to mark them as unique..









 On Wed, Nov 3, 2010 at 12:56, xpanshun srhen...@gmail.com wrote:
  Also, is there a way to make it so that primary key fields are even
  viewable? It seems they are hidden by default...

  On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
   Hi all,

   I've seen this question asked before a lot but from years ago--so
   there wasn't any working response. I am hoping now that its 2010, that
   there is a solution...

   I am using Symfony 1.4. I am currently working with the admin
   generator and I have some primary key fields that are NOT numeric auto-
   increment. These fields are varchar that I need the admin to input
   manually.

   Is there a way to get such a primary key--or any primary key field to
   be editable or created new on the backend?

   Thanks in advance!

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog 
  legroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

 --
 Alex Pilon
 (613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
I'm not sure.. I don't have a lot of experience customizing generators..
however I would suggest that simply adding a column to hold the user entered
value would be easier than trying to manipulate symfony to use a different
kind of primary key. Primary keys are database constructs meant to uniquely
identify records. If the user is entering these they may not always be
unique, and I'm sure that the value you are entering is for another purpose
other than database integrity. I'm guessing adding a new field will work
seemlessly with the generators and not require you to change the default
behavior of things. Again however I don't work with generators much at this
point and I don't know if there is an easy way to do what you want to do
there. My perspective simply is that you would be misusing the primary key
by trying to make it a user entered value.

On Wed, Nov 3, 2010 at 13:15, xpanshun srhen...@gmail.com wrote:

 @ Alex,

 I guess that is possible, but I was hoping for an easier way like
 making some type of change in the generator.yml or something of that
 nature...

 On Nov 3, 1:04 pm, Alex Pilon alex.pi...@gmail.com wrote:
  I've only ever used the default.. but would it be a sufficient solution
 to
  add an extra column to your model that holds this admin typed in key? You
  can use indices to mark them as unique..
 
 
 
 
 
 
 
 
 
  On Wed, Nov 3, 2010 at 12:56, xpanshun srhen...@gmail.com wrote:
   Also, is there a way to make it so that primary key fields are even
   viewable? It seems they are hidden by default...
 
   On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
Hi all,
 
I've seen this question asked before a lot but from years ago--so
there wasn't any working response. I am hoping now that its 2010,
 that
there is a solution...
 
I am using Symfony 1.4. I am currently working with the admin
generator and I have some primary key fields that are NOT numeric
 auto-
increment. These fields are varchar that I need the admin to input
manually.
 
Is there a way to get such a primary key--or any primary key field to
be editable or created new on the backend?
 
Thanks in advance!
 
   --
   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@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@goog legroups.com
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
  --
  Alex Pilon
  (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Alex Pilon
You can configure Doctrine models with a high degree of flexibility.. if you
check out the documentation for Doctrine (specifically
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#columns:column-aliases)
you can see that you can pretty well map columns to field names in whatever
way you want.

As for obstables, you are obviously going to run into mis matched column
names and trying to make sense of a confusing data model.. it's a bit
difficult to forecast everything (particularly because I haven't really run
into anything like this before).

I'm sure someone else will have more information.. if you have any other
more specific questions that would be nice.. the question you asked is a bit
hard to answer imo, but in general I would suggest coming up with a scheme
that reflects the intended relationships of the database schema you are
working with and use the doctrine aliasing and mapping to hide the obscure
database column names from the rest of the application by mapping them into
your model scheme. Abstraction will be a key part of how you get this to
integrate into symfony.

On Wed, Nov 3, 2010 at 04:24, brillenfux enno.weich...@googlemail.comwrote:

 Hi,

 I have to integrate a very bad legacy database and I'd have to specify
 things in the model extensively. There are fields (like contact_id)
 that are named inconsistently all through the database for example
 (like contact, contactid, Contact, Kontakt, KontaktID etc.) also there
 are fields with random names (like ext which is in fact a group_id
 field).
 How many of the field references in the code etc are hard-coded? How
 extensively can I design the model. What obstacles will I see?
 Is there a something comprehensive to read about that topic?

 Thanks,
 Enno

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread xpanshun
I'll probably go ahead and do that Alex, thanks for the response :)

On Nov 3, 1:20 pm, Alex Pilon alex.pi...@gmail.com wrote:
 I'm not sure.. I don't have a lot of experience customizing generators..
 however I would suggest that simply adding a column to hold the user entered
 value would be easier than trying to manipulate symfony to use a different
 kind of primary key. Primary keys are database constructs meant to uniquely
 identify records. If the user is entering these they may not always be
 unique, and I'm sure that the value you are entering is for another purpose
 other than database integrity. I'm guessing adding a new field will work
 seemlessly with the generators and not require you to change the default
 behavior of things. Again however I don't work with generators much at this
 point and I don't know if there is an easy way to do what you want to do
 there. My perspective simply is that you would be misusing the primary key
 by trying to make it a user entered value.









 On Wed, Nov 3, 2010 at 13:15, xpanshun srhen...@gmail.com wrote:
  @ Alex,

  I guess that is possible, but I was hoping for an easier way like
  making some type of change in the generator.yml or something of that
  nature...

  On Nov 3, 1:04 pm, Alex Pilon alex.pi...@gmail.com wrote:
   I've only ever used the default.. but would it be a sufficient solution
  to
   add an extra column to your model that holds this admin typed in key? You
   can use indices to mark them as unique..

   On Wed, Nov 3, 2010 at 12:56, xpanshun srhen...@gmail.com wrote:
Also, is there a way to make it so that primary key fields are even
viewable? It seems they are hidden by default...

On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
 Hi all,

 I've seen this question asked before a lot but from years ago--so
 there wasn't any working response. I am hoping now that its 2010,
  that
 there is a solution...

 I am using Symfony 1.4. I am currently working with the admin
 generator and I have some primary key fields that are NOT numeric
  auto-
 increment. These fields are varchar that I need the admin to input
 manually.

 Is there a way to get such a primary key--or any primary key field to
 be editable or created new on the backend?

 Thanks in advance!

--
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog
 legroups.com
  symfony-users%2bunsubscr...@goog legroups.com
For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en

   --
   Alex Pilon
   (613) 608-1480

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog 
  legroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

 --
 Alex Pilon
 (613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
No problem.

On Wed, Nov 3, 2010 at 13:28, xpanshun srhen...@gmail.com wrote:

 I'll probably go ahead and do that Alex, thanks for the response :)

 On Nov 3, 1:20 pm, Alex Pilon alex.pi...@gmail.com wrote:
  I'm not sure.. I don't have a lot of experience customizing generators..
  however I would suggest that simply adding a column to hold the user
 entered
  value would be easier than trying to manipulate symfony to use a
 different
  kind of primary key. Primary keys are database constructs meant to
 uniquely
  identify records. If the user is entering these they may not always be
  unique, and I'm sure that the value you are entering is for another
 purpose
  other than database integrity. I'm guessing adding a new field will work
  seemlessly with the generators and not require you to change the default
  behavior of things. Again however I don't work with generators much at
 this
  point and I don't know if there is an easy way to do what you want to do
  there. My perspective simply is that you would be misusing the primary
 key
  by trying to make it a user entered value.
 
 
 
 
 
 
 
 
 
  On Wed, Nov 3, 2010 at 13:15, xpanshun srhen...@gmail.com wrote:
   @ Alex,
 
   I guess that is possible, but I was hoping for an easier way like
   making some type of change in the generator.yml or something of that
   nature...
 
   On Nov 3, 1:04 pm, Alex Pilon alex.pi...@gmail.com wrote:
I've only ever used the default.. but would it be a sufficient
 solution
   to
add an extra column to your model that holds this admin typed in key?
 You
can use indices to mark them as unique..
 
On Wed, Nov 3, 2010 at 12:56, xpanshun srhen...@gmail.com wrote:
 Also, is there a way to make it so that primary key fields are even
 viewable? It seems they are hidden by default...
 
 On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
  Hi all,
 
  I've seen this question asked before a lot but from years ago--so
  there wasn't any working response. I am hoping now that its 2010,
   that
  there is a solution...
 
  I am using Symfony 1.4. I am currently working with the admin
  generator and I have some primary key fields that are NOT numeric
   auto-
  increment. These fields are varchar that I need the admin to
 input
  manually.
 
  Is there a way to get such a primary key--or any primary key
 field to
  be editable or created new on the backend?
 
  Thanks in advance!
 
 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@goog legroups.com
   symfony-users%2bunsubscr...@goog legroups.com
 For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
 
--
Alex Pilon
(613) 608-1480
 
   --
   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@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 symfony-users%2bunsubscr...@goog legroups.com
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
  --
  Alex Pilon
  (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Gareth McCumskey
From my experience it is always best to have the Primary Key field be an
auto-incrementing field. If you have additional fiekds wich might be some
kind of serial number or something thats fine, that can be a column with a
unique index, but a lot of searches tend to happen on Primary Key's and
integer searches on a sorted field tend to be far more efficient than a text
search on an unsorted column.

In addition, seperating into a auto-incrementing PK column means that you
can alter the other columns ar a whim without worrying about breaking ID
associations with other tables etc.

On Wed, Nov 3, 2010 at 6:56 PM, xpanshun srhen...@gmail.com wrote:

 Also, is there a way to make it so that primary key fields are even
 viewable? It seems they are hidden by default...

 On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
  Hi all,
 
  I've seen this question asked before a lot but from years ago--so
  there wasn't any working response. I am hoping now that its 2010, that
  there is a solution...
 
  I am using Symfony 1.4. I am currently working with the admin
  generator and I have some primary key fields that are NOT numeric auto-
  increment. These fields are varchar that I need the admin to input
  manually.
 
  Is there a way to get such a primary key--or any primary key field to
  be editable or created new on the backend?
 
  Thanks in advance!

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
Good point regarding associations.

On Wed, Nov 3, 2010 at 13:37, Gareth McCumskey gmccums...@gmail.com wrote:

 From my experience it is always best to have the Primary Key field be an
 auto-incrementing field. If you have additional fiekds wich might be some
 kind of serial number or something thats fine, that can be a column with a
 unique index, but a lot of searches tend to happen on Primary Key's and
 integer searches on a sorted field tend to be far more efficient than a text
 search on an unsorted column.

 In addition, seperating into a auto-incrementing PK column means that you
 can alter the other columns ar a whim without worrying about breaking ID
 associations with other tables etc.

 On Wed, Nov 3, 2010 at 6:56 PM, xpanshun srhen...@gmail.com wrote:

 Also, is there a way to make it so that primary key fields are even
 viewable? It seems they are hidden by default...

 On Nov 3, 12:31 pm, xpanshun srhen...@gmail.com wrote:
  Hi all,
 
  I've seen this question asked before a lot but from years ago--so
  there wasn't any working response. I am hoping now that its 2010, that
  there is a solution...
 
  I am using Symfony 1.4. I am currently working with the admin
  generator and I have some primary key fields that are NOT numeric auto-
  increment. These fields are varchar that I need the admin to input
  manually.
 
  Is there a way to get such a primary key--or any primary key field to
  be editable or created new on the backend?
 
  Thanks in advance!

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Textarea onclick event?

2010-11-03 Thread Parijat Kalia
@Enojust to point out, your solution was not what I wanted, I got it
through Alex, and Gareth chipped in with some information as well. The
problem is symfony, you clearly have not read through carefully about what I
faced.
 Please read it again.
 As Alex pointed earlier, the issue is over.

On Wed, Nov 3, 2010 at 6:18 AM, Alex Pilon alex.pi...@gmail.com wrote:

 Eno, I think you need to review the thread. The problem was
 that Parijat was calling


 textarea_tag('hint-box','','size=70x4',array('onclick'='javascript:alert(yo)'));

 So as you can see there are four arguments here. Parijat stated that the
 onclick attribute was not being rendered. Why not? Because the function only
 accepts three parameters: $name, $content, $options. So what is the problem?
 Is it javascript? No. The javascript is not being rendered yet.

 So maybe *you* have ADD and cannot fully read questions.

 You lack professionalism. The issue is over and you had to dish it out with
 the classic oh you couldve googled. Sure but the issue has been solved and
 so you are not adding anything to the conversation or making any
 constructive statement, just as you are continuing to bitch now.

 I realize that I am adding little to this thread myself in posting this,
 however I must defend the Parijat as he clearly (by my above recap of the
 problem) was having a problem with symfony and NOT with javascript. The
 onclick attribute was NOT even appearing on the textarea.

 Anyways, have yourself a good day sir.


 On Wed, Nov 3, 2010 at 08:42, Eno symb...@gmail.com wrote:

 On Tue, 2 Nov 2010, Parijat Kalia wrote:

  Oh guys, please chill out, none of that was for either of you, it was
 for
  Mr.Eno, because he typically comes up with smart ass  sentences like
 those
  way too often.

 I haven't posted here for months.

 I agree with the smart part - I had the correct answer when noone else did
 (not that you thanked me).

   And yes, the issue that I was dealing with is Javascript, but in a
 symfony
  tags context

 The problem had nothing to do with symfony.

  I did the 10 sec google search several
  times, and read the API, before I decided to seek help here.

 10 seconds is hardly thorough research... OK maybe you have ADD but
 still...




 --


 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Alex Pilon
 (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Gareth McCumskey
You can use symfony to export your current schema to a schem.yml file.
However, before you build models from that schema file, you can add php name
attributes to each table and column. This way the tables and columns with
horrid names can all be referred to be more understandable and consitant
names in code.

On Wed, Nov 3, 2010 at 10:24 AM, brillenfux enno.weich...@googlemail.comwrote:

 Hi,

 I have to integrate a very bad legacy database and I'd have to specify
 things in the model extensively. There are fields (like contact_id)
 that are named inconsistently all through the database for example
 (like contact, contactid, Contact, Kontakt, KontaktID etc.) also there
 are fields with random names (like ext which is in fact a group_id
 field).
 How many of the field references in the code etc are hard-coded? How
 extensively can I design the model. What obstacles will I see?
 Is there a something comprehensive to read about that topic?

 Thanks,
 Enno

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Enno Weichert
Thanks guys,

I certainly wasn't asking you to create my data model ;) my question
was really a conceptual/strategical one.

ATM I ran into pretty fundamental issues with CakePHP because it's a
lot more strict/limited about field names (I mean you can use whatever
names you want but you cannot easily configure them) and I can foresee
these kinds of projects in the future. So I wanted to know if
switching to Symfony would be for the better or not.
I've read about Doctrine and some more about Symfony and am now more
confident that I could make this choice.

Thanks again,
Enno

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Alex Pilon
Well Gareth is right though, you can use symfony to generate your schema
based on the data model you have, and then configure the doctrine mapping
stuff to conform the schema to whatever standard or new schema you want.

I looked at cakePHP a while ago as well. Its lack of command line tools and
support for php 4 gave symfony the win. After getting into symfony and
finding things like Diem, Doctrine, Swift_Mailer, and such I had a feeling
of wow am I ever glad I chose to get into this!

On Wed, Nov 3, 2010 at 14:35, Enno Weichert enno.weich...@googlemail.comwrote:

 Thanks guys,

 I certainly wasn't asking you to create my data model ;) my question
 was really a conceptual/strategical one.

 ATM I ran into pretty fundamental issues with CakePHP because it's a
 lot more strict/limited about field names (I mean you can use whatever
 names you want but you cannot easily configure them) and I can foresee
 these kinds of projects in the future. So I wanted to know if
 switching to Symfony would be for the better or not.
 I've read about Doctrine and some more about Symfony and am now more
 confident that I could make this choice.

 Thanks again,
 Enno

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] 1 action , 2 templates

2010-11-03 Thread Parijat Kalia
Hey guys,

I have 2 very identical templates which have only a minor difference to
them. Their action is exactly the same. So instead of retyping code or
wasting precious space (LOL), here is what my genius conjours:

private function privateAction()
{
 // do some amazing coding
}

public function executeMyAction1()
{
   $this-privateAction();
}


public function executeMyAction2()
{
   $this-privateAction();
}

So basically, I redefined the common action as a private action. Is this a
fine strategy? Or do we have a better recommended strategy!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Martin Ibarra Cervantes
you can use partitials for the view

and in the acction pass the myvar


include_partitial('name', array('myvar'=$myvar));


On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia kaliapari...@gmail.com wrote:
 Hey guys,
 I have 2 very identical templates which have only a minor difference to
 them. Their action is exactly the same. So instead of retyping code or
 wasting precious space (LOL), here is what my genius conjours:
 private function privateAction()
 {
  // do some amazing coding
 }
 public function executeMyAction1()
 {
    $this-privateAction();
 }

 public function executeMyAction2()
 {
    $this-privateAction();
 }
 So basically, I redefined the common action as a private action. Is this a
 fine strategy? Or do we have a better recommended strategy!



 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Gareth McCumskey
Erm .. why not just use the same action instead of having two actions that
are exactly the same? If you are not sure what I mean please give me an
example of what you are doing and I can explain better, but you don't need
to create seperate actions if they are exactly the same

On Wed, Nov 3, 2010 at 10:33 PM, Martin Ibarra Cervantes 
ibarra.cervan...@gmail.com wrote:

 you can use partitials for the view

 and in the acction pass the myvar


 include_partitial('name', array('myvar'=$myvar));


 On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia kaliapari...@gmail.com
 wrote:
  Hey guys,
  I have 2 very identical templates which have only a minor difference to
  them. Their action is exactly the same. So instead of retyping code or
  wasting precious space (LOL), here is what my genius conjours:
  private function privateAction()
  {
   // do some amazing coding
  }
  public function executeMyAction1()
  {
 $this-privateAction();
  }
 
  public function executeMyAction2()
  {
 $this-privateAction();
  }
  So basically, I redefined the common action as a private action. Is this
 a
  fine strategy? Or do we have a better recommended strategy!
 
 
 
  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Alexandre Salomé
There's a setTemplate method on controller. Find the best between
setTemplate and include_partial for your case

Le 3 nov. 2010 21:46, Gareth McCumskey gmccums...@gmail.com a écrit :

Erm .. why not just use the same action instead of having two actions that
are exactly the same? If you are not sure what I mean please give me an
example of what you are doing and I can explain better, but you don't need
to create seperate actions if they are exactly the same



On Wed, Nov 3, 2010 at 10:33 PM, Martin Ibarra Cervantes 
ibarra.cervan...@gmail.com wrote:

 y...
-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 

If you want to report a vulnerability issue on symfony, please send it to
security at symfony-projec...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Alex Pilon
I think both ways are fine..

On Wed, Nov 3, 2010 at 16:33, Martin Ibarra Cervantes 
ibarra.cervan...@gmail.com wrote:

 you can use partitials for the view

 and in the acction pass the myvar


 include_partitial('name', array('myvar'=$myvar));


 On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia kaliapari...@gmail.com
 wrote:
  Hey guys,
  I have 2 very identical templates which have only a minor difference to
  them. Their action is exactly the same. So instead of retyping code or
  wasting precious space (LOL), here is what my genius conjours:
  private function privateAction()
  {
   // do some amazing coding
  }
  public function executeMyAction1()
  {
 $this-privateAction();
  }
 
  public function executeMyAction2()
  {
 $this-privateAction();
  }
  So basically, I redefined the common action as a private action. Is this
 a
  fine strategy? Or do we have a better recommended strategy!
 
 
 
  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon
(613) 608-1480

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Admin Generator / Error

2010-11-03 Thread xpanshun
Hi all,

I have my backend set up and was testing out the functions (i.e. edit,
delete, new, etc.). All was well until I tried to modify a table that
is connected to a couple other tables. I was not even attempting to
change the value of a fk field--I was editing a different field that
was rather frivolous. Nonetheless, I got this error:

SQLSTATE[HY000]: General error: 1452 Cannot add or update a
child row: a foreign key constraint fails

So why won't the update go through, even though I am not changing any
fk field?

Would appreciate any guidance. Thanks a bunch...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Admin Generator / Error

2010-11-03 Thread Alex Pilon
Check onDelete: cascade on your relations.

On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com wrote:

Hi all,

I have my backend set up and was testing out the functions (i.e. edit,
delete, new, etc.). All was well until I tried to modify a table that
is connected to a couple other tables. I was not even attempting to
change the value of a fk field--I was editing a different field that
was rather frivolous. Nonetheless, I got this error:

   SQLSTATE[HY000]: General error: 1452 Cannot add or update a
child row: a foreign key constraint fails

So why won't the update go through, even though I am not changing any
fk field?

Would appreciate any guidance. Thanks a bunch...

--
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Trying to manage the credentials of the actions

2010-11-03 Thread Martin Ibarra Cervantes
the 2nd questión its with addCredential() when your user is authenticated

example:

 $user = $this-getUser();

if($r-getNivelId() == 1){
$user-addCredential('basic');
}

On Wed, Nov 3, 2010 at 9:52 AM, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 we want to manage the credentials of the actions of the backend from
 the backend.

 How to get the list of the actions of an app? After that we could show
 the credential of each one through getCredential().

 2nd question: i found the function to get the credential of an action
 (getCredential()), but how to _set_ the credentials? I didn't find any
 setCredential() function...

 Javi

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / Error

2010-11-03 Thread xpanshun
@ Alex,

I tried it--didn't work :(

Any other ideas?

On Nov 3, 6:46 pm, Alex Pilon alex.pi...@gmail.com wrote:
 Check onDelete: cascade on your relations.

 On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com wrote:

 Hi all,

 I have my backend set up and was testing out the functions (i.e. edit,
 delete, new, etc.). All was well until I tried to modify a table that
 is connected to a couple other tables. I was not even attempting to
 change the value of a fk field--I was editing a different field that
 was rather frivolous. Nonetheless, I got this error:

        SQLSTATE[HY000]: General error: 1452 Cannot add or update a
 child row: a foreign key constraint fails

 So why won't the update go through, even though I am not changing any
 fk field?

 Would appreciate any guidance. Thanks a bunch...

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog 
 legroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/symfony-users?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / Error

2010-11-03 Thread xpanshun
This may be tied to the problem, but its another problem I have
nonetheless...

When clicking edit for my first few tables, they are being routed
through the primary key field like: admin/1/edit

But my last several tables are being routed through another field
like: product/B0006/edit... Where B0006 is my second column in the
table--it should be using 1 as I took your advice earlier (Alex) are
modified my database schema to include an autoincrementing field for
each necessary table. So, I have no idea what is going on :S

On Nov 3, 7:04 pm, xpanshun srhen...@gmail.com wrote:
 @ Alex,

 I tried it--didn't work :(

 Any other ideas?

 On Nov 3, 6:46 pm, Alex Pilon alex.pi...@gmail.com wrote:







  Check onDelete: cascade on your relations.

  On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com wrote:

  Hi all,

  I have my backend set up and was testing out the functions (i.e. edit,
  delete, new, etc.). All was well until I tried to modify a table that
  is connected to a couple other tables. I was not even attempting to
  change the value of a fk field--I was editing a different field that
  was rather frivolous. Nonetheless, I got this error:

         SQLSTATE[HY000]: General error: 1452 Cannot add or update a
  child row: a foreign key constraint fails

  So why won't the update go through, even though I am not changing any
  fk field?

  Would appreciate any guidance. Thanks a bunch...

  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog 
  legroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Admin Generator / Error

2010-11-03 Thread xpanshun
This whole thing is messed up for some reason; maybe I should just
start over :/ :(

On Nov 3, 7:29 pm, xpanshun srhen...@gmail.com wrote:
 This may be tied to the problem, but its another problem I have
 nonetheless...

 When clicking edit for my first few tables, they are being routed
 through the primary key field like: admin/1/edit

 But my last several tables are being routed through another field
 like: product/B0006/edit... Where B0006 is my second column in the
 table--it should be using 1 as I took your advice earlier (Alex) are
 modified my database schema to include an autoincrementing field for
 each necessary table. So, I have no idea what is going on :S

 On Nov 3, 7:04 pm, xpanshun srhen...@gmail.com wrote:







  @ Alex,

  I tried it--didn't work :(

  Any other ideas?

  On Nov 3, 6:46 pm, Alex Pilon alex.pi...@gmail.com wrote:

   Check onDelete: cascade on your relations.

   On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com wrote:

   Hi all,

   I have my backend set up and was testing out the functions (i.e. edit,
   delete, new, etc.). All was well until I tried to modify a table that
   is connected to a couple other tables. I was not even attempting to
   change the value of a fk field--I was editing a different field that
   was rather frivolous. Nonetheless, I got this error:

          SQLSTATE[HY000]: General error: 1452 Cannot add or update a
   child row: a foreign key constraint fails

   So why won't the update go through, even though I am not changing any
   fk field?

   Would appreciate any guidance. Thanks a bunch...

   --
   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@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog
legroups.com
   For more options, visit this group 
   athttp://groups.google.com/group/symfony-users?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Sebastien Armand [Pink]
Huh

If it's only a minor difference in the templates, you probably don't really
need 2 templates and could just pass a variable to the template so that from
there you know how you should display it...

On Thu, Nov 4, 2010 at 4:38 AM, Alex Pilon alex.pi...@gmail.com wrote:

 I think both ways are fine..


 On Wed, Nov 3, 2010 at 16:33, Martin Ibarra Cervantes 
 ibarra.cervan...@gmail.com wrote:

 you can use partitials for the view

 and in the acction pass the myvar


 include_partitial('name', array('myvar'=$myvar));


 On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia kaliapari...@gmail.com
 wrote:
  Hey guys,
  I have 2 very identical templates which have only a minor difference to
  them. Their action is exactly the same. So instead of retyping code or
  wasting precious space (LOL), here is what my genius conjours:
  private function privateAction()
  {
   // do some amazing coding
  }
  public function executeMyAction1()
  {
 $this-privateAction();
  }
 
  public function executeMyAction2()
  {
 $this-privateAction();
  }
  So basically, I redefined the common action as a private action. Is this
 a
  fine strategy? Or do we have a better recommended strategy!
 
 
 
  --
  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@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Alex Pilon
 (613) 608-1480

 --
 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@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en