[symfony-users] Re: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior
So... It seems about right. Is sluggable field in the table in database? On Jun 21, 6:53 pm, lucia aicul...@gmail.com wrote: Hi, thanks for your time, I have this: //Basemyprofile1 $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'fields' = array( 0 = 'name', ), 'unique' = true, )); $this-actAs($timestampable0); $this-actAs($sluggable0); On 21 jun, 14:52, Grzegorz ¦liwiñski fi...@fizyk.net.pl wrote: hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes if they include your behaviours? On Jun 20, 2:13 pm, lucia aicul...@gmail.com wrote: Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: true}} columns: relations: ... myprofile2: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ } columns: relations: ... I expected field called 'slug' , but no... Any idea? Maybe colision with inheritance? I changed the position of inheritance but the field slug doesn't appear.. Does anyone know how I can fix this? The sluggable behavior is very important for myprofile1 table. On the other hand, can I use concrete inheritance with this plugin? Thanks a lot PS: I'm sorry for my English- Ocultar texto de la cita - - Mostrar texto de la cita - -- 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: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior
hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes if they include your behaviours? On Jun 20, 2:13 pm, lucia aicul...@gmail.com wrote: Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: true}} columns: relations: ... myprofile2: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ } columns: relations: ... I expected field called 'slug' , but no... Any idea? Maybe colision with inheritance? I changed the position of inheritance but the field slug doesn't appear.. Does anyone know how I can fix this? The sluggable behavior is very important for myprofile1 table. On the other hand, can I use concrete inheritance with this plugin? Thanks a lot PS: I'm sorry for my English -- 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: Multiple kind of profile with sfGuard
Inheritance worked quite good, when I worked with these on diem based portal. sfForked used inheritance initially, but as always, you have to make the final mechanism to process inherited objects, so at current version it's up to developer, whether he'll add inheritance, or not. On Jun 1, 4:39 pm, Olivier Revollat revol...@gmail.com wrote: Heyhttp://www.symfony-project.org/plugins/sfForkedDoctrineApplyPlugin sound good :) 2011/6/1 Olivier Revollat revol...@gmail.com I know inheritance in doctrine but I wonder if this could work correctly with symfony forms ?? Does anybody use inheritance for the same kind of pb ?? 2011/6/1 Grzegorz Śliwiński fi...@fizyk.net.pl Check out those two links about inheritance in Doctrine: http://www.symfony-project.org/more-with-symfony/1_4/en/09-Doctrine-F... http://www.doctrine-project.org/projects/orm/1.2/docs/manual/inherita... On Jun 1, 9:46 am, Olivier Revollat revol...@gmail.com wrote: up :) 2011/5/31 Olivier Revollat revol...@gmail.com I want to usehttp:// www.symfony-project.org/plugins/sfDoctrineApplyPlugin To allow users to register themselves but I have two kind of profile with different fields ... for example say that profile_type_1 has type_1_fields_1 and type_1_field_2, ... and profile_type_2 has type_2_fields_1 and type_2_field_2 my first idea was to mix all the fields in the same table (sf_guard_user_profile) and only display the required fields on the registration form ... but it sound very ugly :( So I think the best solution is the have two separate tables : sf_guard_user_profile_type_1 and sf_guard_user_profile_type_2 and dynamically get the right profile regarding, for example, the group whom the user belong to ... What do you think ? what is the best practice ?? code code examples ?? Thansks for your help :) -- *Pour résoudre un problème intéressant, commencez par trouver un problème qui vous intéresse.* -- 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 -- *Pour résoudre un problème intéressant, commencez par trouver un problème qui vous intéresse.* -- *Pour résoudre un problème intéressant, commencez par trouver un problème qui vous intéresse.* -- 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: Multiple kind of profile with sfGuard
Check out those two links about inheritance in Doctrine: http://www.symfony-project.org/more-with-symfony/1_4/en/09-Doctrine-Form-Inheritance http://www.doctrine-project.org/projects/orm/1.2/docs/manual/inheritance/en#inheritance On Jun 1, 9:46 am, Olivier Revollat revol...@gmail.com wrote: up :) 2011/5/31 Olivier Revollat revol...@gmail.com I want to usehttp://www.symfony-project.org/plugins/sfDoctrineApplyPlugin To allow users to register themselves but I have two kind of profile with different fields ... for example say that profile_type_1 has type_1_fields_1 and type_1_field_2, ... and profile_type_2 has type_2_fields_1 and type_2_field_2 my first idea was to mix all the fields in the same table (sf_guard_user_profile) and only display the required fields on the registration form ... but it sound very ugly :( So I think the best solution is the have two separate tables : sf_guard_user_profile_type_1 and sf_guard_user_profile_type_2 and dynamically get the right profile regarding, for example, the group whom the user belong to ... What do you think ? what is the best practice ?? code code examples ?? Thansks for your help :) -- *Pour résoudre un problème intéressant, commencez par trouver un problème qui vous intéresse.* -- 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: The form and filter that belong to a plugin-model are created in project /lib by build
What plugin? What are the exact paths to those forms and filters? are they like that: lib/form/doctrine/plugin/ ? On Mar 15, 9:51 am, Ariaan Bruinsma ariaanbruin...@gmail.com wrote: As the title suggests: The filter and the form which belong to a model are created on build. Normally this wouldn't be a problem, but since this model is part of a plugin. I don't like to create any classes outside the plugin- directory which I don't need in the project-directory (lib/) Is there a configuration I can make in the plugin, that will prevent rebuilding of the filter and form classes in the project-space? Hope someone can clarify this for me, because I don't understand why those classes are being generated in the first place. Thank you, Ariaan -- 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: How to set up a situation where a comments table is used for multiple entities
Michal's idea is one way, although personally wouldn't add that many fk's into Comment model. Each new model that will get commented, will result in modifying Comment table. If it'll grow up, ALTER TABLE might take long time. Second idea is to create association tables for each commented model (i'd prefer that), - Each new model will result ony in new association table, without the need to alter comment table Third idea is used in vjCommentPlugin: http://www.symfony-project.org/plugins/vjCommentPlugin There are no foreign keys, instead there is field which indicates commented object's model, and it's id. On 25 Lut, 16:51, Alex Pilon alex.pi...@gmail.com wrote: Hello Everyone, I have a schema in which I have several entities, lets call them Shows, Broadcasters and Pitches. A Show is essentially pitched to a Broadcaster which creates the Pitch which is an entity that sits between Show and Broadcaster and creates a many to many relationship. This is all fine and good, however there is a Note model which is meant to be attached to Show and Broadcaster (and potentially Pitch in the future). It seems to me that this sort of multi use comments table won't work quite right unless Show and Broadcaster have a common primary key, as there wouldn't be anyway to guarentee unique ids between the Show and Broadcaster and therefore Note would have an invalid foreign key. The idea I had to solve this was to create an entity table in which the other Models inherit from, but the types of inheritance don't seem to solve this problem, as simple puts everything in one table, which is rather undesirable, and concrete doesn't seem to allow shared ids with a base table. Anyone ever have a similar set up? -- 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: Overriding the Stylesheet of a Plugin's Forms?
Hi Matt, you'll have to either override the getStylesheet method, or look at the line here: https://github.com/fizyk/sfForkedDoctrineApplyPlugin/blob/master/modules/sfApply/templates/applySuccess.php#L2 Just override that template in your app's sfApply/templates deleting that line On 19 Lut, 22:27, Matt Gibson goth...@gothick.org.uk wrote: Hi, I'm using sfForkedDoctrineApplyPlugin, but I want to override the CSS that it includes for its forms. I can see the css file being added by all the forms in the plugin's / lib/form/ directory with a line like this in getStylesheets(): return array( '/sfForkedDoctrineApplyPlugin/css/forked' = 'all' ); What's the recommended way of stopping/overriding this? Can it be overridden in a config file (as the normal stylesheets can be overridden in view.yml by using -whatver.css?) Or am I going to have to do something more complicated, like making my own versions of all the forms? Sorry if there's an obvious answer here; I tried both searching and thinking, honest :) but I'm a Symfony beginner... Thanks, Matt -- 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: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]
Yes, original does require Zend mail, but that's why I created fork, which uses Swift mailer, which is included in symfony On Feb 7, 11:51 am, Manu emmanuel.parf...@gmail.com wrote: I checked out the plugin, it seems a little complicated; the edit user page sends an email using Zend mail... How come editing your profile isn't a part of sfDoctrineGuardPlugin ? Surely I cannot be the first one to want that functionality on their website ! -- 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: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]
There are actually two plugins that implements this as well as registration: http://www.symfony-project.org/plugins/sfDoctrineApplyPlugin (original) http://www.symfony-project.org/plugins/sfForkedDoctrineApplyPlugin (fork of the above) And if you don't want to use them, you can always take a look at their code. On Jan 31, 2:00 pm, Manu emmanuel.parf...@gmail.com wrote: Hello, I'm building a blog engine to learn symfony and I have a question : How do I create a page allowing users to edit their (and only their) password, email, and profile. I tried creating an admin-module on the table sfGuardUser, that seemed to work, but when a user saves its infos, all the permissions disapear, and is_active is set to false Is there a module of sfDoctrineGuardPlugin to let users edit their profile and password ?. -- 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: [symfony2] InvalidArgumentException: [ERROR 1871] after creating project through symfony-bootstrap
Thanks a lot, It worked. On 15 Sty, 20:02, Christophe COEVOET s...@notk.org wrote: Le 15/01/2011 19:54, Grzegorz Śliwiński a écrit : I've recently started to look into symfony2, and decided after checking sandbox version, that if anything helps me to learn symfony2, it would be clean project. Finally found information about symfony bootstrap, that generates clean project skeleton, in similar way as it worked in symfony1.4. But maybe unfortunately I decided to use xml configuration, and it got me into troubles. At first there were some typos, which already got fixed, but now I'm getting another (uncaught) error: InvalidArgumentException: [ERROR 1871] Element '{http://www.symfony- project.org/schema/dic/symfony}session': This element is not expected. Expected is one of ( {http://www.symfony-project.org/schema/dic/ symfony}translator, {http://www.symfony-project.org/schema/dic/symfony} param-converter ). (in /home/www/szkola/app/config/config.xml - line 21, column 0) in /.../project/src/vendor/symfony/src/Symfony/Component/ DependencyInjection/Loader/XmlFileLoader.php on line 321 i thought that adding those expected elements, even empty, would solve this issue, but.. well... theapp:session element is still unexpected. I had the same issue before moving my app to yaml. The order of the elements seems to be important to validate the XSD schema. Defining the session before the templating solved the problem for me at this time. -- Christophe | Stof -- 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] [symfony2] InvalidArgumentException: [ERROR 1871] after creating project through symfony-bootstrap
I've recently started to look into symfony2, and decided after checking sandbox version, that if anything helps me to learn symfony2, it would be clean project. Finally found information about symfony bootstrap, that generates clean project skeleton, in similar way as it worked in symfony1.4. But maybe unfortunately I decided to use xml configuration, and it got me into troubles. At first there were some typos, which already got fixed, but now I'm getting another (uncaught) error: InvalidArgumentException: [ERROR 1871] Element '{http://www.symfony- project.org/schema/dic/symfony}session': This element is not expected. Expected is one of ( {http://www.symfony-project.org/schema/dic/ symfony}translator, {http://www.symfony-project.org/schema/dic/symfony} param-converter ). (in /home/www/szkola/app/config/config.xml - line 21, column 0) in /.../project/src/vendor/symfony/src/Symfony/Component/ DependencyInjection/Loader/XmlFileLoader.php on line 321 i thought that adding those expected elements, even empty, would solve this issue, but.. well... the app:session element is still unexpected. -- 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: Issue with sfForkedDoctrineApplyPlugin
Finally checked that and I haven't had the problem with sending emails as you described On 12 Sty, 13:51, Grzegorz Śliwiński fi...@fizyk.net.pl wrote: I'll check it out in the evening, but if it is the problem, I suppose it'll be either with swift mailer, or with gmail/yahoo On Jan 12, 7:29 am, sinu govind sinugov...@gmail.com wrote: Yes , when in my app.yml I set the from address to a gmail id or yahoo id , the mail does not go. But it goes with other ids. 2011/1/11 Grzegorz Śliwiński fi...@fizyk.net.pl You mean same from email, like the gmail id? On Jan 11, 1:19 pm, sinu govind sinugov...@gmail.com wrote: Hi all, Finally I got the sfforkeddoctrineapplyplugin working fine and I have got the email. But still I am facing few issues. If in my app.xaml file, I give sfForkedApplyPlugin: from: email: fullname: the staff at yoursite.com If I give my email as my gmail or yahoo id, it fails and a message An error took place during the email delivery process. Please try again later. Please help!!! Sinu -- 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%2Bunsubscribe@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: Issue with sfForkedDoctrineApplyPlugin
I'll check it out in the evening, but if it is the problem, I suppose it'll be either with swift mailer, or with gmail/yahoo On Jan 12, 7:29 am, sinu govind sinugov...@gmail.com wrote: Yes , when in my app.yml I set the from address to a gmail id or yahoo id , the mail does not go. But it goes with other ids. 2011/1/11 Grzegorz Śliwiński fi...@fizyk.net.pl You mean same from email, like the gmail id? On Jan 11, 1:19 pm, sinu govind sinugov...@gmail.com wrote: Hi all, Finally I got the sfforkeddoctrineapplyplugin working fine and I have got the email. But still I am facing few issues. If in my app.xaml file, I give sfForkedApplyPlugin: from: email: fullname: the staff at yoursite.com If I give my email as my gmail or yahoo id, it fails and a message An error took place during the email delivery process. Please try again later. Please help!!! Sinu -- 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
[symfony-users] Re: Issue with sfForkedDoctrineApplyPlugin
You mean same from email, like the gmail id? On Jan 11, 1:19 pm, sinu govind sinugov...@gmail.com wrote: Hi all, Finally I got the sfforkeddoctrineapplyplugin working fine and I have got the email. But still I am facing few issues. If in my app.xaml file, I give sfForkedApplyPlugin: from: email: fullname: the staff at yoursite.com If I give my email as my gmail or yahoo id, it fails and a message An error took place during the email delivery process. Please try again later. Please help!!! Sinu -- 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: Issue with sfForkedDoctrineApplyPlugin
Could you check indentation in your app.yml? Also, what does the developer console says about defined user settings? I think it should be defined there. On Jan 10, 1:29 pm, sinu govind sinugov...@gmail.com wrote: Hi, I have the following defined in my app.yaml sfApplyPlugin: from: email: sinugov...@gmail.com fullname: The staff after installing the sfForkedDoctrineApplyPlugin. But when I click the Create account, it shows me the error message app_sfApplyPlugin_from is not set. Please help Sinu Govind -- 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: Removing myself from plugin contributors ?
Isn't that set in plugin.xml file? On Jan 4, 2:55 pm, Loïc Vernet vernet.l...@gmail.com wrote: Hi, How to remove myself from the list of the contributors of a plugin ? We should have a cross to do this in the admin tab. (Like when you are lead of the plugin) ++ COil -- 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: sfDoctrineGuard user profile one-to-one relationships
You can extend user model with your own attributes to this model in your own schema.yml file. You can even overwrite user's native fields definition in that matter. It's completely valid. And refClass will always produce Collection as it' the many-to-many relation definition. If it's not satisfying you, there's always Doctrine Inheritance ;) On 23 Paź, 03:01, Jonotron jonot...@gmail.com wrote: I guess one-to-one in this case isn't the correct description. sfGuardUser has one Company, Company has man sfGuardUser. To accomplish this (because I shouldn't edit the sfGuardUser model directly) I go through an intermediary table sfGuardUserProfile. I believe my schema above is correct, and the refClass is generated because I am using the intermediary table and I can't eliminated it as it is in the base model. On Oct 22, 4:50 pm, Stéphane stephane.er...@gmail.com wrote: Hi, You don't need refClass for 1-to-1 ! Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sat, Oct 23, 2010 at 1:31 AM, Jonotron jonot...@gmail.com wrote: I want to create a one-to-one relationship between users and companies. Since I shouldn't be editing the sfDoctrineGuard schema's directlyI've created a sfGuardUserProfile model: sfGuardUserProfile: tableName: sf_guard_user_profile columns: user_id: { type: integer, notnull: true } org_id: { type: integer, notnull: true } relations: sfGuardUser: { onDelete: CASCADE, local: user_id, foreign: id, foreignAlias: Profile, foreignType: one, type: one } Company: { onDelete: CASCADE, local: org_id, foreign: id, foreignAlias: sfGuardUserProfiles } And my Company model has a relation like this: relations: sfGuardUser: foreignAlias: Company class: sfGuardUser local: id foreign: org_id refClass: sfGuardUserProfile foreignType: one This appears to create all the correct models, the basesfGuardUser model has: $this-hasOne('Company', array( 'refClass' = 'sfGuardUserProfile', 'local' = 'org_id', 'foreign' = 'id')); However, when I do: $sf_user-getGuardUser()-getCompany(); it returns a collection rather than an object. The simple fix is to do this: $sf_user-getGuardUser()-getProfile()-getCompany(); (and refactor it into the sfGuardUser class) I suspect that the refClass is what is causing this behaviour. Is this intended? is there another way to create a one-to-one relationship as I've described above? My solution works, but it feels wrong somehow. Thanks -- 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: column_aggregation.. change type programatically?
Try running an update query against that row. It should be possible to change type that way. On 28 Wrz, 17:31, Gustavo Adrian comfortablynum...@gmail.com wrote: Hi there, Is there a way to change an object's type programatically? I mean, I have the type field on my form so I can change the type of the object. When it's a new object there's no problem but when I try to edit one, let's say a Section object, and I want to change it to a Category object, it doesn't change. The problem I guess is that, when I look for the object using the generic table (let's say GenericElement) from which Section and Category inherits from, it returns a Section object. If I try to save it changing the type field to Category, it saves itself with the Section type value instead. Is there a way to do what I want? maybe retrieving the object as the generic type from which Section and Category inherit from? but I don't know how to do this (or even if it's possible). 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: enter comments on a blog in the same page
have you tried to use plugins for that? If you'll create form object in an article action, and you'll try to display that form in article's template, it should be possible to include form. On 28 Wrz, 20:30, eduard eduard.sa...@gmail.com wrote: Hy, I'm trying to do this: I have a article, with its comments at the food on the page, and I want to put at the bottom a form to create comments. But comments and article ara distinct classes, so if I copy the new form of comments to the article template I have errors (widgets not found). How can I do it? Thanks. -- 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: Working with Symfony and Git (collaboration)
It's not matter of git, but rather the matter of your development strategy. If your apps are supposed to work within one project, then one repo is what you need, if these apps are in fact three different projects, then second idea is right. You can always have different branches for each developer, one branch with all their work merged and one branch for only core changes (libs - model, installed plugins, general configuration for environments) On 13 Wrz, 08:34, Darmen ioxans...@gmail.com wrote: Hello everyone, Suppose we have a Project with three applications — A, B and C. Our team: Jack, Susan and Martin. And one project leader — David. Each programmer is working on their own application: A - Jack B - Susan C - Martin So, there is a problem with source code management. How to effectively organize it with Git? I have several use-cases, but I'm not really sure if they are correct and effective. Here they are: 1) One repo for whole project. 2) Separates repositories for A, B and C apps (within their appropriate directories in apps folder). I really like second idea, but I'm not if it's really effective. What do you thing and how would you organize such things? Any help will be appreciated. -- 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: Trying to set sfGuardUser objects after applying
two objects are created, because you're trying to do this before you save Profile. You should either do that after $form-save(), or overwrite sfApply form with your own, where you'll pass the email to user object along with username and password. To speak by example: http://github.com/fizyk/sfForkedDoctrineApplyPlugin/blob/for_sfDoctrineGuard5/lib/form/sfApplyApplyForm.class.php#L132 On 28 Sie, 21:05, Javier Garcia tirengar...@gmail.com wrote: Hi, i have installed sfDoctrineGuardPlugin and sfDoctrineApplyPlugin. When a user is register through sfApply/apply i would like to save the value of the field 'email' of that apply form in the sfGuardUser 'email_address' field. So I added this in executeApply: $this-form-getObject()-getUser()-setEmailAddress($this-form-getValue('email')); The problem: two sfGuardUser objects are created after a user applies for an account: the first one with the values entered in the apply form and the second one has the 'email_address' field with the value that the user wrote in the field 'email'. I expected just one object is created. So what should i do? -- Javi Ubuntu 8.04. sf 1.4 -- 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: How to validate values from $GLOBALS[HTTP_RAW_POST_DATA]
Thanks Gareth, I'll have to play it. I wanted to validate sent image and save it because we have already defined how to save files in form. On 3 Sie, 15:43, Gareth McCumskey gmccums...@gmail.com wrote: Simple answer .. don't. You should be able to accept requests through symfony's post handlers that can also transmit files just as if someone had uploaded a file through a form. 2010/8/3 Grzegorz Śliwiński fi...@fizyk.net.pl -- Gareth McCumskeyhttp://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] How to validate values from $GLOBALS[HTTP_RAW_POST_DATA]
Hello, I have to accept image sent through flash/flex app by post. Since flash/flex can't send different data types through post request, flash/ flex developer ask if I can accept image through $GLOBALS[HTTP_RAW_POST_DATA]. So, my question is if I can retrieve from $GLOBALS[HTTP_RAW_POST_DATA] sent file, and validate it somehow in form. I've never used HTTP_RAW_POST_DATA, hence my question. -- 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: latest verion of sfForkedDoctrineApplyPlugin is broken
Tristan, You don't have the relation already defined, do you? But you're probably using sfDoctrineGuard 5.0.0, right? redeclare id field in your schema.yml, or use for_sfDoctrineGuard5 branch from repo. On 29 Lip, 22:04, Tristan tristan.bessou...@gmail.com wrote: Ok, it seems that i have two declaration of sfGuardUserProfile, so i deleted mine, and kept the one from the plugin (merging my attributes) SQLSTATE[HY000]: General error: 1005 Can't create table 'mywebsite.#sql-7d_7b' (errno: 150). Failing Query: ALTER TABLE sf_guard_user_profile ADD CONSTRAINT sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE. Failing Query: ALTER TABLE sf_guard_user_profile ADD CONSTRAINT sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE -- 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: latest verion of sfForkedDoctrineApplyPlugin is broken
Well... I did, twice, once developing it on my dev project, and second time upgrading my live project :) Do you have sfGuardUserProfile declaration in your project's schema.yml? Do you extend the default declaration in any way? Like additional columns, relations? Also, you might get problems with models that are from the previous version in lib/models/doctrine and lib/model/doctrine/base, and with new profile declaration they are placed in lib/model/doctrine/ sfForkedDoctrineApplyPlugin On 28 Lip, 01:52, Tristan tristan.bessou...@gmail.com wrote: Have you removed or cut sfGuardUserProfile declaration from schema.yml? Definitly not, that's where i store the user information since you cannot override sfGuardUser methods. Is anyone has tested the latest version of the plugin ? Cause either i'm missing a real important thing and it's all my fault, or either, the plugin is buggy ;O -- 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: latest verion of sfForkedDoctrineApplyPlugin is broken
How about forms and filters? are these still there? Have you removed or cut sfGuardUserProfile declaration from schema.yml? On 27 Lip, 19:22, Tristan tristan.bessou...@gmail.com wrote: Sorry, i forgot to tell that i removed manually all the /lib/model/ doctrine/sfForkedDoctrineApplyPlugin/ then i redid a rebuild all. Then, a similar error, different line -- 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