[symfony-users] Re: Symfony cache + PHP fatal error
Where and how do you include the Javascript helper? Kiril Angov wrote: > I have enabled the cache on one of my frontends where I am testing only > the caching and as I mentioned it works fine. I am cashing certain > actions only. And the problem does not exist if I cache with the layout > - only if I set the layout caching to false, this problem happens. > > Also if it helps, I get the same error message if I use return > sfView::NONE in my controller. For example: > > public function execureTest() > { > echo "test"; > return sfView::NONE; > } > > Then I will get in the browser: > > test > *Fatal error*: Call to undefined function content_tag() in > */usr/local/pear/symfony/helper/JavascriptHelper.php* on line *700* > > Thanks for taking the time, > Kupo > > Fabien POTENCIER wrote: >> It looks like the TagHelper is not loaded in your case. This is weird >> because this helper is loaded by default by symfony. Can you tell us a >> bit more about your cache usage. >> >> Fabien >> >> Kiril Angov wrote: >> >>> Hello list, >>> >>> my time came to ask for help :) >>> >>> I just enabled caching for the first time in my application and when >>> testing the caching in a different controller (frontend_staging.php), >>> everything is as expected. I turn on caching on the production >>> controller and php dies with: >>> >>> [Sun Jun 03 06:28:12 2007] [error] [client 127.0.0.1] PHP Fatal error: >>> Call to undefined function: content_tag() in >>> /usr/local/pear/symfony/helper/JavascriptHelper.php on line 700, >>> referer: http://www.mydomain.com/ >>> >>> The two controllers have the same settings in settings.yml apart from >>> the staging controller has: >>> >>> web_debug: on >>> error_reporting:4095 >>> >>> Now, what do I do ;) >>> >>> Thanks, >>> Kiril >>> >>> >>> >> > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony cache + PHP fatal error
I have enabled the cache on one of my frontends where I am testing only the caching and as I mentioned it works fine. I am cashing certain actions only. And the problem does not exist if I cache with the layout - only if I set the layout caching to false, this problem happens. Also if it helps, I get the same error message if I use return sfView::NONE in my controller. For example: public function execureTest() { echo "test"; return sfView::NONE; } Then I will get in the browser: test *Fatal error*: Call to undefined function content_tag() in */usr/local/pear/symfony/helper/JavascriptHelper.php* on line *700* Thanks for taking the time, Kupo Fabien POTENCIER wrote: > It looks like the TagHelper is not loaded in your case. This is weird > because this helper is loaded by default by symfony. Can you tell us a > bit more about your cache usage. > > Fabien > > Kiril Angov wrote: > >> Hello list, >> >> my time came to ask for help :) >> >> I just enabled caching for the first time in my application and when >> testing the caching in a different controller (frontend_staging.php), >> everything is as expected. I turn on caching on the production >> controller and php dies with: >> >> [Sun Jun 03 06:28:12 2007] [error] [client 127.0.0.1] PHP Fatal error: >> Call to undefined function: content_tag() in >> /usr/local/pear/symfony/helper/JavascriptHelper.php on line 700, >> referer: http://www.mydomain.com/ >> >> The two controllers have the same settings in settings.yml apart from >> the staging controller has: >> >> web_debug: on >> error_reporting:4095 >> >> Now, what do I do ;) >> >> Thanks, >> Kiril >> >> >> > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony cache + PHP fatal error
It looks like the TagHelper is not loaded in your case. This is weird because this helper is loaded by default by symfony. Can you tell us a bit more about your cache usage. Fabien Kiril Angov wrote: > Hello list, > > my time came to ask for help :) > > I just enabled caching for the first time in my application and when > testing the caching in a different controller (frontend_staging.php), > everything is as expected. I turn on caching on the production > controller and php dies with: > > [Sun Jun 03 06:28:12 2007] [error] [client 127.0.0.1] PHP Fatal error: > Call to undefined function: content_tag() in > /usr/local/pear/symfony/helper/JavascriptHelper.php on line 700, > referer: http://www.mydomain.com/ > > The two controllers have the same settings in settings.yml apart from > the staging controller has: > > web_debug: on > error_reporting:4095 > > Now, what do I do ;) > > Thanks, > Kiril > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Store Sessions in DB
see http://www.symfony-project.com/book/trunk/06-Inside-the-Controller-Layer#User%20Session On the server side, symfony stores user sessions in files by default. You can store them in your database by changing the value of the class parameter in factories.yml, as shown in Listing 6-21. Listing 6-21 - Changing the Server Session Storage, in apps/myapp/config/factories.yml all: storage: class: sfMySQLSessionStorage param: db_table: SESSION_TABLE_NAME # Name of the table storing the sessions database: DATABASE_CONNECTION # Name of the database connection to use The available session storage classes are sfMySQLSessionStorage, sfPostgreSQLSessionStorage, and sfPDOSessionStorage; the latter is preferred. The optional database setting defines the database connection to be used; symfony will then use databases.yml (see Chapter 8) to determine the connection settings (host, database name, user, and password) for this connection. Fabien Greg Freeman wrote: > Hey, I've been doing some searching about changing the behavior of the > sfguard plugin. I want to be able to store the sessions in a database. > Has anyone come across any discussion on this matter? > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: changing the module to load inside a filter
You can try something like this (not tested) in your filter: $context = $this->getContext(); $controller = $context->getController(); $actionInstance = $controller->getAction($moduleName, $actionName); $actionInstance->initialize($context); $context->getActionStack()->addEntry($moduleName, $actionName, $actionInstance); I think this is the minimum you have to do to change the module and action from a filter. Be warned that using this method will not trigger some of symfony features. Fabien Lukas Kahwe Smith wrote: > Hi, > > I am wondering if there is a cheap (*) way to change the module to load > inside a filter .. or is it too late at this point already? > > If not, is there at least a way to easily change the action to load in a > cheap way? > > Essentially what I am doing is a feature where a "service" can be loaded > via AJAX. However the name of the service can either map directly to a > module or it can map to an action in a module etc. Currently everything > is routed through a "mapping" module, that then uses > getPresentationFor(), but I think it would be cleaner inside a filter > and hopefully also faster, since I would spare myself from running > through the filter chain twice. > > regards, > Lukas > > (*) as in do not restart filter chain; so cheap as in fast > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] changing the module to load inside a filter
Hi, I am wondering if there is a cheap (*) way to change the module to load inside a filter .. or is it too late at this point already? If not, is there at least a way to easily change the action to load in a cheap way? Essentially what I am doing is a feature where a "service" can be loaded via AJAX. However the name of the service can either map directly to a module or it can map to an action in a module etc. Currently everything is routed through a "mapping" module, that then uses getPresentationFor(), but I think it would be cleaner inside a filter and hopefully also faster, since I would spare myself from running through the filter chain twice. regards, Lukas (*) as in do not restart filter chain; so cheap as in fast --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Store Sessions in DB
Hey, I've been doing some searching about changing the behavior of the sfguard plugin. I want to be able to store the sessions in a database. Has anyone come across any discussion on this matter? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: AJAX indicator always visible
I believe the function you desire can be done simply with the CSS position property set to 'fixed'. Unfortunately, IE6 screws it all up for everyone, as usual, so you'll have to resort to some hacks for that. http://www.cssplay.co.uk/layouts/fixed.html http://tagsoup.com/cookbook/css/fixed/ http://home.tampabay.rr.com/bmerkey/examples/fake-position-fixed.html All demonstrate pretty much the same hack, and you'll have to use separate stylesheet for IE<7. --Colin Oh, and alternately you could dissect gmail's code and find out how they do it. On 6/4/07, Jon Todd <[EMAIL PROTECTED]> wrote: > > > I'm trying to make my ajax indicator that says 'Loading...' during an > AJAX call to act like the indicator on gmail. Regardless of scrolling > the indicator remains in the same spot on the page. I believe this > would be a rather simple javascript just wondering if anyone already > has an elegant solution. > > The .NET folks have AlwaysVisibleControl: > > http://ajax.asp.net/ajaxtoolkit/AlwaysVisibleControl/AlwaysVisibleControl.aspx > > We should have something similar in symfony. I'll write the plugin if > someone has the code. > > > > > -- "Doh!" - Homer Simpson --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Problem with pear with symfony plugin-install
Hi, You have to set the path to your PEAR.php within your php.ini file of your php install. Hope that helps. On Jun 4, 2007, at 3:43 PM, Arnaud wrote: > > Hello, > > I've got an error when i want to install a plug-in : > this problem with pear is only when i make this command. > > $ symfony plugin-install http://plugins.symfony-project.com/ > sfPrototypeWindowPlugin > > Warning: require_once(PEAR.php): failed to open stream: No such file > or directory in /Applications/xampp/xamppfiles/lib/php/pear/data/ > symfony/tasks/sfPakePlugins.php on line 147 > > Fatal error: require_once(): Failed opening required > 'PEAR.php' (include_path='/Users/arnaudtanguy/Sites/sfprojects/allyno/ > lib:/Users/arnaudtanguy/Sites/sfprojects/allyno/apps//lib::/ > Applications/xampp/xamppfiles/lib/php/pear/symfony/vendor:.:/ > Applications/xampp/xamppfiles/lib/php') in /Applications/xampp/ > xamppfiles/lib/php/pear/data/symfony/tasks/sfPakePlugins.php on line > 147 > > How can i solve that ? > > Thx. > > My symfony version : symfony version 1.0.3 > I'm on a Mac OSX 10.4.9 > > > > Davinder S. Mahal Principal / Lead Developer DSM Cyber Media http://www.dsmcybermedia.com {---} internet & media development Union City, CA +011 510-489-4827 [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Problem with pear with symfony plugin-install
Hello, I've got an error when i want to install a plug-in : this problem with pear is only when i make this command. $ symfony plugin-install http://plugins.symfony-project.com/sfPrototypeWindowPlugin Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /Applications/xampp/xamppfiles/lib/php/pear/data/ symfony/tasks/sfPakePlugins.php on line 147 Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='/Users/arnaudtanguy/Sites/sfprojects/allyno/ lib:/Users/arnaudtanguy/Sites/sfprojects/allyno/apps//lib::/ Applications/xampp/xamppfiles/lib/php/pear/symfony/vendor:.:/ Applications/xampp/xamppfiles/lib/php') in /Applications/xampp/ xamppfiles/lib/php/pear/data/symfony/tasks/sfPakePlugins.php on line 147 How can i solve that ? Thx. My symfony version : symfony version 1.0.3 I'm on a Mac OSX 10.4.9 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfMediaLibraryPlugin i18N
Hi, I've installed sfMediaLibraryPlugin via Pear into a project - my first use of sfMediaLibraryPlugin. I followed the directions to enable it, and went to backend_dev.php/sfMediaLibrary and the page displays the Media Library. However, I also get a mass of errors related to i18N, even though I'm not using it and therefore have not enabled it. I haven't used i18N before either, so I'm not too familiar with it within symfony. (at least not yet) These are the errors I'm getting, if you can help and let me know what could be causing this and how to fix it. Again, I'm not using nor do I want to use i18N. Thank you, Davinder Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Warning: Invalid argument supplied for foreach() in /opt/local/lib/ php/pear/symfony/helper/I18NHelper.php on line 36 Warning: strtr() [function.strtr]: The second argument is not an array. in /opt/local/lib/php/pear/symfony/helper/I18NHelper.php on line 44 Davinder S. Mahal --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] AJAX indicator always visible
I'm trying to make my ajax indicator that says 'Loading...' during an AJAX call to act like the indicator on gmail. Regardless of scrolling the indicator remains in the same spot on the page. I believe this would be a rather simple javascript just wondering if anyone already has an elegant solution. The .NET folks have AlwaysVisibleControl: http://ajax.asp.net/ajaxtoolkit/AlwaysVisibleControl/AlwaysVisibleControl.aspx We should have something similar in symfony. I'll write the plugin if someone has the code. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: objects_for_select() question
on the fifth parameter of your objects_for_select, use for example 'include_custom="yourvalue here (Or no value)" ' --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.0.3 release notes?
Pazartesi 04 Haziran 2007 tarihinde, Brian Kendig şunları yazmıştı: > Where can I find release notes for Symfony 1.0.3, to let me know > what's changed in this new release? Look at this, http://www.symfony-project.com/weblog/2007/05/25/symfony-1-0-3-released.html > > --~--~-~--~~~---~--~~ > 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 [EMAIL PROTECTED] For more options, visit this > group at http://groups.google.com/group/symfony-users?hl=en > -~--~~~~--~~--~--~--- -- Saygılar && İyi çalışmalar Timu EREN (a.k.a selam) signature.asc Description: This is a digitally signed message part.
[symfony-users] Symfony 1.0.3 release notes?
Where can I find release notes for Symfony 1.0.3, to let me know what's changed in this new release? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] admin generator (doctrine) and i18n
Hi, I tried to build an admin generated module for a i18n record. But all I see is the fields of the "base class" - not the fields of the i18n class. So my question is: Has anyone ever configured a i18n admin generator module? Any hints how to get this work? I guess I need something to switch the culture!? Regards, Matthias --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Problem to delete an askeet user
AFAIK, askeet can delete users you must be an administrator for making the deletion of a user, and talking about the anonymous user you can have the user in your database and not use it at all. Just a suggestion, i did this in the application that i have online based on Askeet too. Good Luck On 5/31/07, senechaux <[EMAIL PROTECTED]> wrote: > > Hi, first sorry for my english, below I will write the original text > in spanish. > > I am developing an application based on askeet and i have a problem > with a feature that is not implemented in askeet, the deletion of > users. This is not implemented. > > The problem appears when an user is deleted, in my application doesn't > exist the anonymous user and it must to delete all contributions from > an user: his questions, his answers, ... and his reports (question > reports and answer resports), and when is deleted the reports it must > to be updated the field "reports" in tables Answer and Question. > > How can i do this? > > I have configured in the database the field user_id as foreign key and > with the property OnDelete: Cascade, so when an user is deleted all > rows from all tables where exists that user_id are deleted. Well, but > when are deleted the reports that this user made it would must have a > trigger that updates the reports field from tables Answer and > Question. > > I have tried redefine the doDelete() method from ReportQuestionPeer > and here update the reports counter but I don't know how to get the > ReportQuestion object to get the Question Id, that is necessary to > update the Question reports counter. > > Here the link to the askeet database diagram > http://www.symfony-project.com/images/askeet/mcd4.gif > > Thanks > > > Spanish original text: > > Buenas, estoy desarrollando una aplicación a partir de askeet y tengo > un problema con una cosa que al parecer no se ha implementado en > askeet. En askeet se supone que los administradores pueden borrar > usuarios pero no está implementado realmente. > > El problema surge cuando se borra a un usuario, en mi aplicación no > existe el usuario anónimo y debe borrarse todo rastro del usuario: sus > preguntas, sus respuestas, ... y sus reportes (tanto de preguntas como > de respuestas), y cuando se borran los reportes se debe actualizar el > contador de reportes tanto de las preguntas como de las respuestas > reportadas. > > ¿Cómo se hace? > > Yo tengo declarado en la base de datos el user_id como clave foranea y > con la propiedad OnDelete: Cascade, es decir que cuando se borra el > usuario se debe borrar todas las filas de las tablas donde aparezca > ese usuario, hasta aquí perfecto, pero al borrar los reportes que ha > hecho este usuario se debería disparar una especie de trigger que > actualiza el número de reportes de la pregunta o la respuesta. > > Lo que he intentado es redefinir el método doDelete() de la clase > ReportQuestionPeer para ahí actualizar el contador de reportes pero no > sé cómo tener acceso al objeto ReportQuestion para obtener el Id de la > Question, necesario para actualizar el contador Reports de dicha > Question. > > Os dejor con un enlace al esquema de la base de datos de askeet > > http://www.symfony-project.com/images/askeet/mcd4.gif > > Sé que es una pregunta compleja pero agradeceré cualquier ayuda. > > En cualquier caso, muchas gracias. > > > > > -- Grimoire Guru SourceMage GNU/Linux --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: configs and other stuff in the cache
Ian P. Christian wrote: >> Stuff that gets cached into php files should benefit from using a byte >> code cache. > > APC cache sounds like a great idea... sfProcessCache should be easily used as an alternative in order to leverage APC. I will give it a go tomorrow to see how this speeds up things. one thing that would be nice if there would be an api call alternative to store arbitrary variables inside the cache API's. this would use (un)serialize() when using the file cache. with apc you obviously dont need to call serialize(). generally the cache API's should be aligned to work the same, so that you can easily switch one out for another. >> I also read before that someone people have seen nice spee d gains with >> sfOptimizer. > > I installed it, and ran it, and noticed no significant improvement at > all - perhaps I did something wrong. > I tink it went from 29ms to 28.5ms or something like that, so it's > debatable as to if there was even an improvement, as I was testing on a > live system, with unpredictable load. Ah .. Pierre recently mailed the list with his success story. Hmm .. generally sfOptimizer made me worry about QA anyways. So I will hold off from that for now. regards, Lukas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfPropelActAsNestedSetBehaviorPlugin and multiple databases
On 6/4/07, andyjeffries <[EMAIL PROTECTED]> wrote: > I'm happy to supply a patch, great :) > but can you give me any hints on how to > add it neatly (rather than just hacking it in to get it to work)? * create a ticket about plugin not supporting multiple databases * checkout plugin's latest sources from subersion : http://svn.symfony-project.com/plugins/sfPropelActAsNestedSetBehaviorPlugin/ * configure unit test file for your environment (as described in http://svn.symfony-project.com/plugins/sfPropelActAsNestedSetBehaviorPlugin/test/unit/PropelActAsNestedSetBehaviorTest.php docblocks) * run tests to know what works and what doesnt before you start modifying the code * write unit tests related to multiple database handling * make your modifications * rerun tests to make sure you did not break anything and that your tests pass * update README (especially public API docs) * generate patch * attach patch to ticket if you really don't succeed in writing the unit tests, don't bother and go on with the code ;) it will just take a bit longer for your patch to go upstream (i will need time to write the missing unit tests). don't hesitate to ask me for help off-list. regards, tristan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfPropelActAsNestedSetBehaviorPlugin and multiple databases
> > sfPropelActAsNestedSetBehaviorPlugin only calles > > propel::getConnection() so it never uses the correct database for the > > current object > > indeed. i did not need the feature at the time i coded the plugin, and > was too lazy to implement it. > > patch (should be fairly straightforward) + unit tests welcome ;) Hi tristan, I'm happy to supply a patch, but can you give me any hints on how to add it neatly (rather than just hacking it in to get it to work)? Unit tests I've never written (I know, I know, slap received)... Cheers, Andy --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfPropelActAsNestedSetBehaviorPlugin and multiple databases
hi, On 6/4/07, andyjeffries <[EMAIL PROTECTED]> wrote: > sfPropelActAsNestedSetBehaviorPlugin only calles > propel::getConnection() so it never uses the correct database for the > current object indeed. i did not need the feature at the time i coded the plugin, and was too lazy to implement it. patch (should be fairly straightforward) + unit tests welcome ;) ++ tristan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfPropelActAsNestedSetBehaviorPlugin and multiple databases
We have multiple databases defined in databases.yml, however sfPropelActAsNestedSetBehaviorPlugin only calles propel::getConnection() so it never uses the correct database for the current object (and therefore never finds the tables, balking out when you call ->save() after calling ->insertAsLastChildOf($node). I'm fairly new to symfony, but don't mind having a whack - can someone give me a pointer to a clean way to implement what I need. Obviously the short term answer is to put that database first in databases.yml (as only one database currently uses sfPropelActAsNestedSetBehaviorPlugin ) but we all know that's a hack and doomed to failure as the second database gets added to the mix. Cheers, Andy --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: multi sfPropelVersionableBehaviorPlugin ?
On 6/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > thx tristran i found at night that i could do that ( i remove foreign > key to Article - i think it is confusing so why dont u remove it?) you are right, i'll make the documentation clearer with the next release. > awesome plugin i must say :) thanks for the kind words :) > have u got any problems,ideas about integrating > sfPropelVersionableBehaviorPlugin with i18n or Zend Lucene Search ? i have never tried, nor thought about it. i18n will probably raise problems, lucene integration should go without any problem (imho). i've been thinking about propel behavior for auto indexing resources in lucene, but i have not taken the time to code it yet. any feedback about that is welcome ;) ++ tristan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---