[symfony-users] Model: Foreign keys to a table

2007-06-15 Thread Haidarah Husain
Hi, I'm a beginner to symfony. I don't know where I could get the reference to my problem. How to make a (propel?) model with more than a foreign key to a table. Let say I have 2 tables, user and document. propel: user: id: name:varchar(255) document id: title:

[symfony-users] Re: Model: Foreign keys to a table

2007-06-15 Thread scube
use this syntax in your schema.yml propel: user: id: name:varchar(255) document id: title:varchar(255) owner_id: { type: integer, foreignTable: user, foreignReference: id } creator_id: { type: integer, foreignTable: user, foreignReference: id }

[symfony-users] Re: Model: Foreign keys to a table

2007-06-15 Thread Adriaan van Natijne
When you need multiple editors use: propel: user: id: user_doc: id: owner: user_edit_link: user_id: document_id: created_at: Or simulair. Adriaan On 15/06/07, scube [EMAIL PROTECTED] wrote: use this syntax in your schema.yml propel: user: id: name:

[symfony-users] sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread elbouillon
Hi list, I've just added a plugin that enable you to easily add a map into a Symfony application. This plugin isn't very advanced, but you can already do some fun stuff. More info here : http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin If you have suggestions, bug reports (there are no

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread Matthias Nothhaft
elbouillon wrote: Hi list, I've just added a plugin that enable you to easily add a map into a Symfony application. This plugin isn't very advanced, but you can already do some fun stuff. More info here : http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin If you have suggestions,

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread Matthias Nothhaft
elbouillon wrote: Hi list, I've just added a plugin that enable you to easily add a map into a Symfony application. This plugin isn't very advanced, but you can already do some fun stuff. More info here : http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin If you have suggestions,

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread Alexander Deruwe
On 15 Jun 2007, at 14:24, Matthias Nothhaft wrote: elbouillon wrote: http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin I did't have a look at it yet but I suggest to rename it to sfGoogleMapsPlugin Seconded. And this sounds really useful, and I could use it for my current project.

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread Adriaan van Natijne
It's realy cool. One of the things that can be done better is the Propel support... On 15/06/07, Alexander Deruwe [EMAIL PROTECTED] wrote: On 15 Jun 2007, at 14:24, Matthias Nothhaft wrote: elbouillon wrote: http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin I did't have a look at

[symfony-users] Re: admin_input_file_tag

2007-06-15 Thread ranonE
On 8 Giu, 09:55, Sébastien CAS [EMAIL PROTECTED] wrote: Hi all, I use a admin_input_file_tag field in a form. I have created a validate.yml to control this field. It works fine when I create a new record. But when I want to update a record, I've got a problem. The admin_input_file_tag

[symfony-users] Re: admin_input_file_tag

2007-06-15 Thread Nicolas CHARLOT
ranonE a crit: On 8 Giu, 09:55, Sbastien CAS [EMAIL PROTECTED] wrote: Hi all, I use a "admin_input_file_tag" field in a form. I have created a validate.yml to control this field. It works fine when I create a new record. But when I want to update a record, I've got a problem.

[symfony-users] Deployment Method

2007-06-15 Thread Rafael George
Is there some fast and good method for making sync with a hosting provider of a local Symfony app. The application is no my local subversion server and i use my machine as my dev server, im thinking in having a branch for the stable version and trunk will be for unstable after i made changes to

[symfony-users] Re: Deployment Method

2007-06-15 Thread gestadieu
You can find the detail in the book online in chapter 16. But basically once setup you just need to do a 'symfony sync production go' and it will update your server. Gerald On Jun 15, 11:52 pm, Rafael George [EMAIL PROTECTED] wrote: Is there some fast and good method for making sync with a

[symfony-users] sfSugarCRMPlugin

2007-06-15 Thread Matthias Nothhaft
Hi, I just looked at the plugin. I don't know the api but I only see insert methods in the plugin. Is it also possible to read and update data via the sugar api? Would make less sense to me if it wouldn't be possible, e.g. to update user data - or to fetch a new product from sugerCRM into a

[symfony-users] Subdomain referencing particular app

2007-06-15 Thread Jon Todd
Say I have 2 apps: frontend backend I want domain.com - frontend backend.domain.com - backend I could do this in the .htaccess file assuming frontend is in the index.php file # backend web controller? RewriteCond %{HTTP_HOST} ^backend\..+$ [NC] RewriteRule ^(.*)$ backend.php [QSA,L] #

[symfony-users] Re: Subdomain referencing particular app

2007-06-15 Thread Nicolas CHARLOT
Jon Todd a crit: Say I have 2 apps: frontend backend I want domain.com - frontend backend.domain.com - backend I could do this in the .htaccess file assuming frontend is in the index.php file # backend web controller? RewriteCond %{HTTP_HOST} ^backend\..+$ [NC] RewriteRule ^(.*)$

[symfony-users] Re: Subdomain referencing particular app

2007-06-15 Thread Jon Todd
Nicolas, Thanks for the link. I did test it and it works. On Jun 15, 12:08 pm, Nicolas CHARLOT [EMAIL PROTECTED] wrote: Jon Todd a écrit :Say I have 2 apps: frontend backend I want domain.com - frontend backend.domain.com - backend I could do this in the .htaccess file assuming frontend is

[symfony-users] Admin generator and helpers

2007-06-15 Thread Seboss
Hello! I'm just trying out the admin generator for my new project since I never tried it out before and it looks pretty spiffy. I've been trying for some time to use the format_country helper but to no avail. My generator.yml goes like this: generator: class:

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread elbouillon
yep, good idea, I'll rename it ! On 15 juin, 14:24, Matthias Nothhaft [EMAIL PROTECTED] wrote: elbouillon wrote: Hi list, I've just added a plugin that enable you to easily add a map into a Symfony application. This plugin isn't very advanced, but you can already do some fun stuff.

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread elbouillon
Never eared about this Google Maps Api, I'll take a look. Thanks for this information. On 15 juin, 14:42, Matthias Nothhaft [EMAIL PROTECTED] wrote: elbouillon wrote: Hi list, I've just added a plugin that enable you to easily add a map into a Symfony application. This plugin isn't

[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread elbouillon
Yeah ;-) not difficutl there isn't :D I won't add a propel version yet, because I think it more usefull to improve the google features. But if you want to change the modules to enable them working with propel, thank you ;-) On 15 juin, 15:43, Adriaan van Natijne [EMAIL PROTECTED] wrote: It's

[symfony-users] Re: Model: Foreign keys to a table

2007-06-15 Thread Haidarah Husain
On 6/15/07, scube [EMAIL PROTECTED] wrote: use this syntax in your schema.yml propel: user: id: name:varchar(255) document id: title:varchar(255) owner_id: { type: integer, foreignTable: user, foreignReference: id } creator_id: {