Re: [symfony-users] Re: sfPropel15Plugin
That's the answer, thank you for your advice. Tomek 2010/12/4 Richtermeister : > Hey Tomasz, > > this is normal - you have to tell Propel to also hydrate the I18N > classes via: > (example) CategoryQuery::create() -> joinWith('CategoryI18N') -> > find(); > > I usually create a "withI18N" method on the internationalized query > classes for convenience. > Works like a charm and reduces everything down to one query. > > Daniel > > > On Dec 3, 1:23 am, Tomasz Fertacz wrote: >> Question is how to use i18n with sfPropel15Plugin. Because when I use >> standard not ClassNameI18NQuery but ClassNameQuery class, after I'm >> calling object it queries database for i18n attributes, so when i >> query 100 objects, it queries 100 times. Should it be like this? Am I >> doing something wrong? >> >> Tomek > > -- > 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: sfPropel15Plugin
Hey Tomasz, this is normal - you have to tell Propel to also hydrate the I18N classes via: (example) CategoryQuery::create() -> joinWith('CategoryI18N') -> find(); I usually create a "withI18N" method on the internationalized query classes for convenience. Works like a charm and reduces everything down to one query. Daniel On Dec 3, 1:23 am, Tomasz Fertacz wrote: > Question is how to use i18n with sfPropel15Plugin. Because when I use > standard not ClassNameI18NQuery but ClassNameQuery class, after I'm > calling object it queries database for i18n attributes, so when i > query 100 objects, it queries 100 times. Should it be like this? Am I > doing something wrong? > > Tomek -- 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: sfPropel15Plugin problem
I figured that out. The problem is not related to the plugin itself. I had a customized "segment_separators" option in my factories.yml file. On Oct 3, 1:51 pm, Rytis Daugirdas wrote: > Hello, > > I generated an admin module (propel:generate-admin) for the > corresponding model and there seems to be a routing problem. Upon > running my app I get the following error: > > sfPropel15Route::serialize() must return a string or NULL > > Here's my routing.yml:http://pastebin.com/NKrcWGaV. If I remove the > generated "administrator" route collection, the error disappears. I > never had this problem with the pre-1.5 Propel plugin. > > What could be the problem? > > Regards, > Rytis -- 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: sfPropel15Plugin won't install
It was too simple, I am not used. Thanks. On 11 juin, 10:49, Gábor Fási wrote: > It means you have to download the plugin either from svn, or as a .tgz > file from the website. The latter one is easier, here's the > link:http://plugins.symfony-project.org/get/sfPropel15Plugin/sfPropel15Plu... > > Unpack it to your project's plugins directory, then open your > config/ProjectConfiguration.class.php in your editor, and look for a > line like this: > > $this->enablePlugins(array('sfPropelPlugin')); > > change it to: > > $this->enablePlugins('sfPropel15Plugin'); > > according to the plugin's readme, you'll also need to change the path > of the symfony behaviors in the config/propel.ini file of your > project: > > propel.behavior.symfony.class = > plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfony > propel.behavior.symfony_i18n.class = > plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18n > propel.behavior.symfony_i18n_translation.class = > plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18nTranslation > propel.behavior.symfony_behaviors.class = > plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors > propel.behavior.symfony_timestampable.class = > plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorTimestampable > > clear your cache, do a `plugin:publish-assets`, rebuild your models > and you are done. > > On Thu, Jun 10, 2010 at 15:42, lecochien wrote: > > Hi, > > (it's my first question, be indulgent ;-) > > Ive got the same problem > > What does it means "enable it manualy" I've change my > > PrjectConfiguration.class.php to enble the plugin, but now...? what > > can i do ?. i'm little bit confused... thanks. > > > symfony plugin:installsfPropel15Plugin > >>> plugin installing plugin "sfPropel15Plugin" > > > No release available for plugin "sfPropel15Plugin" > > > On 21 mai, 20:04, Három D. Márk wrote: > >> Unpack the archive in your plugins folder and enable it manually in > >> the ProjectConfiguration. > > >> On Fri, May 21, 2010 at 17:00, ferdjuan wrote: > >> > I tried: > > >> > symfony plugin:installsfPropel15Plugin > > >> > and got: > > >> >>> plugin installing plugin "sfPropel15Plugin" > >> > No release available for plugin "sfPropel15Plugin" in state > >> > "stable" > > >> > So I downloaded the package .tgz and tried to install that and I got: > > >> >>> sfPearFrontendPlugin ...done: 1,525,189 bytes > >> >>> sfPearFrontendPlugin Validation Error: No files in section > >> >>> of > >> >>> sfPearFrontendPlugin package.xml > >> >>> sfPearFrontendPlugin Validation Error: No maintainers found, at least > >> >>> one must be > >> >>> sfPearFrontendPlugin defined > >> >>> sfPearFrontendPlugin Validation Error: No release notes found > >> >>> sfPearFrontendPlugin Validation Error: No release date found > >> >>> sfPearFrontendPlugin Validation Error: No release state found > >> >>> sfPearFrontendPlugin Validation Error: No release version found > >> >>> sfPearFrontendPlugin Validation Error: Missing license > >> >>> sfPearFrontendPlugin Validation Error: Missing description > >> >>> sfPearFrontendPlugin Validation Error: No summary found > >> >>> sfPearFrontendPlugin Validation Error: Missing Package Name > >> >>> sfPearFrontendPlugin Parsing of package.xml from file > >> >>> sfPearFrontendPlugin > >> >>> "/storage2/home/admin/domains/dev.immense.net/apollo/cache/.pear/sfPropel15Plugin-0.9.3/lib/vendor/propel-generator/pear/build-pear-package.xml" > >> >>> sfPearFrontendPlugin failed > >> >>> sfPearFrontendPlugin Download of "symfony-plugins/sfPropel15Plugin" > >> >>> succeeded, but > >> >>> sfPearFrontendPlugin it is not a valid package archive > >> >>> sfPearFrontendPlugin Error: cannot download > >> >>> "symfony-plugins/sfPropel15Plugin" > > >> > Plugin "sfPropel15Plugin-0.9.3.tgz" installation failed: Download > >> > failed > > >> > I'm running symfony 1.3.1, any ideas? > > >> > -- > >> > 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 > >> athttp://groups.google.com/group/symfon
Re: [symfony-users] Re: sfPropel15Plugin won't install
It means you have to download the plugin either from svn, or as a .tgz file from the website. The latter one is easier, here's the link: http://plugins.symfony-project.org/get/sfPropel15Plugin/sfPropel15Plugin-1.0.0.tgz Unpack it to your project's plugins directory, then open your config/ProjectConfiguration.class.php in your editor, and look for a line like this: $this->enablePlugins(array('sfPropelPlugin')); change it to: $this->enablePlugins('sfPropel15Plugin'); according to the plugin's readme, you'll also need to change the path of the symfony behaviors in the config/propel.ini file of your project: propel.behavior.symfony.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfony propel.behavior.symfony_i18n.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18n propel.behavior.symfony_i18n_translation.class = plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorI18nTranslation propel.behavior.symfony_behaviors.class= plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorSymfonyBehaviors propel.behavior.symfony_timestampable.class= plugins.sfPropel15Plugin.lib.behavior.SfPropelBehaviorTimestampable clear your cache, do a `plugin:publish-assets`, rebuild your models and you are done. On Thu, Jun 10, 2010 at 15:42, lecochien wrote: > Hi, > (it's my first question, be indulgent ;-) > Ive got the same problem > What does it means "enable it manualy" I've change my > PrjectConfiguration.class.php to enble the plugin, but now...? what > can i do ?. i'm little bit confused... thanks. > > symfony plugin:install sfPropel15Plugin >>> plugin installing plugin "sfPropel15Plugin" > > > No release available for plugin "sfPropel15Plugin" > > On 21 mai, 20:04, Három D. Márk wrote: >> Unpack the archive in your plugins folder and enable it manually in >> the ProjectConfiguration. >> >> >> >> On Fri, May 21, 2010 at 17:00, ferdjuan wrote: >> > I tried: >> >> > symfony plugin:installsfPropel15Plugin >> >> > and got: >> >> >>> plugin installing plugin "sfPropel15Plugin" >> > No release available for plugin "sfPropel15Plugin" in state >> > "stable" >> >> > So I downloaded the package .tgz and tried to install that and I got: >> >> >>> sfPearFrontendPlugin ...done: 1,525,189 bytes >> >>> sfPearFrontendPlugin Validation Error: No files in section of >> >>> sfPearFrontendPlugin package.xml >> >>> sfPearFrontendPlugin Validation Error: No maintainers found, at least >> >>> one must be >> >>> sfPearFrontendPlugin defined >> >>> sfPearFrontendPlugin Validation Error: No release notes found >> >>> sfPearFrontendPlugin Validation Error: No release date found >> >>> sfPearFrontendPlugin Validation Error: No release state found >> >>> sfPearFrontendPlugin Validation Error: No release version found >> >>> sfPearFrontendPlugin Validation Error: Missing license >> >>> sfPearFrontendPlugin Validation Error: Missing description >> >>> sfPearFrontendPlugin Validation Error: No summary found >> >>> sfPearFrontendPlugin Validation Error: Missing Package Name >> >>> sfPearFrontendPlugin Parsing of package.xml from file >> >>> sfPearFrontendPlugin >> >>> "/storage2/home/admin/domains/dev.immense.net/apollo/cache/.pear/sfPropel15Plugin-0.9.3/lib/vendor/propel-generator/pear/build-pear-package.xml" >> >>> sfPearFrontendPlugin failed >> >>> sfPearFrontendPlugin Download of "symfony-plugins/sfPropel15Plugin" >> >>> succeeded, but >> >>> sfPearFrontendPlugin it is not a valid package archive >> >>> sfPearFrontendPlugin Error: cannot download >> >>> "symfony-plugins/sfPropel15Plugin" >> >> > Plugin "sfPropel15Plugin-0.9.3.tgz" installation failed: Download >> > failed >> >> > I'm running symfony 1.3.1, any ideas? >> >> > -- >> > 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 >> 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
[symfony-users] Re: sfPropel15Plugin won't install
Hi, (it's my first question, be indulgent ;-) Ive got the same problem What does it means "enable it manualy" I've change my PrjectConfiguration.class.php to enble the plugin, but now...? what can i do ?. i'm little bit confused... thanks. symfony plugin:install sfPropel15Plugin >> plugininstalling plugin "sfPropel15Plugin" No release available for plugin "sfPropel15Plugin" On 21 mai, 20:04, Három D. Márk wrote: > Unpack the archive in your plugins folder and enable it manually in > the ProjectConfiguration. > > > > On Fri, May 21, 2010 at 17:00, ferdjuan wrote: > > I tried: > > > symfony plugin:installsfPropel15Plugin > > > and got: > > >>> plugin installing plugin "sfPropel15Plugin" > > No release available for plugin "sfPropel15Plugin" in state > > "stable" > > > So I downloaded the package .tgz and tried to install that and I got: > > >>> sfPearFrontendPlugin ...done: 1,525,189 bytes > >>> sfPearFrontendPlugin Validation Error: No files in section of > >>> sfPearFrontendPlugin package.xml > >>> sfPearFrontendPlugin Validation Error: No maintainers found, at least one > >>> must be > >>> sfPearFrontendPlugin defined > >>> sfPearFrontendPlugin Validation Error: No release notes found > >>> sfPearFrontendPlugin Validation Error: No release date found > >>> sfPearFrontendPlugin Validation Error: No release state found > >>> sfPearFrontendPlugin Validation Error: No release version found > >>> sfPearFrontendPlugin Validation Error: Missing license > >>> sfPearFrontendPlugin Validation Error: Missing description > >>> sfPearFrontendPlugin Validation Error: No summary found > >>> sfPearFrontendPlugin Validation Error: Missing Package Name > >>> sfPearFrontendPlugin Parsing of package.xml from file > >>> sfPearFrontendPlugin > >>> "/storage2/home/admin/domains/dev.immense.net/apollo/cache/.pear/sfPropel15Plugin-0.9.3/lib/vendor/propel-generator/pear/build-pear-package.xml" > >>> sfPearFrontendPlugin failed > >>> sfPearFrontendPlugin Download of "symfony-plugins/sfPropel15Plugin" > >>> succeeded, but > >>> sfPearFrontendPlugin it is not a valid package archive > >>> sfPearFrontendPlugin Error: cannot download > >>> "symfony-plugins/sfPropel15Plugin" > > > Plugin "sfPropel15Plugin-0.9.3.tgz" installation failed: Download > > failed > > > I'm running symfony 1.3.1, any ideas? > > > -- > > 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 > 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: sfPropel15Plugin and sfGuardPlugin problem
Hey there, this is the standard behavior. Most plugins define the package directory similar to this: _attributes: { package: plugins.sfGuardPlugin.lib.model } This makes the model live in the plugin directory. Daniel On Jun 3, 8:06 am, AgusQuiroga wrote: > Hi, > I just started a new project and installed the sfPropel15Plugin, and > then installed the sfGuardPlugin. So far so good, but when I try to do > a propel:build-all then my propel model is created inside the > sfGuardPlugin model folder in the plugins directory... any ideas on > whats going on? > Is the fisrt time that I see that. > Regards, -- 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