[symfony-users] Re: propel:generate-crud Problem - Please help
On 28 Mar, 10:55, ZAAN <[EMAIL PROTECTED]> wrote: > Ahmed Oualim napisał(a): > > > > > Hi, > > With symfony 1.1 propel:generate-crud is not working with my installation. > > (SVN 1.1, XAMPP, XP PRO) > > > Please help. > > > C:\xampp\htdocs\sim>symfony propel:generate-crud admin city City > > > Unable to load > > "C:\xampp\symfony\lib\plugins\sfPropelPlugin\data\generator\sfP > > ropelCrud\default\template\actions\actions.class.php" generator template in: > > C:\ > > xampp\htdocs\sim\data/generator/sfPropelCrud/default/template, > > C:\xampp\symfony\ > > lib/plugins/sfPropelPlugin/data/generator/sfPropelCrud/default/template. > > > -- > > Regards , > > > Ahmed Oualim > > Hi, > I've got the similar problem while generating admin from generator.yml > in 1.1 > I found that the problem was with sfFinder on Windows Platform and > relative paths (there where two "\" at the end of the path, and > function str_replace does not work correctly). I add in > sfFinder.class.php at line 364 > $dir = in_array($dir{(strlen($dir-1))},array("\\","/")) ? substr($dir, > 0,-1) : $dir; and it helped, maybe it also helps you. > > I don't know if is it symfony bug or my env configuration. > > BR Watch out. I noticed that commands lines f.e. propel:build-model stop executing correctly after adding the line I previously post. There must be another solution. Does anyone have any idea? --~--~-~--~~~---~--~~ 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: doselectRS questions
[EMAIL PROTECTED] wrote: > The second method returns an object, and I need the array. I don't use propel anymore, but just some advice... Try to remove as many lines as possible from your problem before reporting it - there's a lot of stuff going on in your pastes, and I wonder if 90% of it can't be removed - in doing so you might even answer your own question :) Secondly - use get_class or something to see what kinda object is returned. I'm not trying to troll or tell you off, genuinely trying to help. Kind Regards, Ian --~--~-~--~~~---~--~~ 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: session collisions
On Fri, 28 Mar 2008, Ian P. Christian wrote: > You need to use transactions and read a little about concurrency issues > I think :) > > the default database session backend doesn't do locking, and you're > probbaly getting into issues because of that. FWIW, we're using InnoDB tables without any problems. -- --~--~-~--~~~---~--~~ 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: doselectRS questions
The second method returns an object, and I need the array. On Mar 28, 2:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Asking questions is no problem. Thats community. > But, please write WHAT didn't work?! What happened? What is the error? > > Michael > > On Mar 28, 7:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Sorry I am asking so many questions. > > > I have do different methods, both of which return an array. > > > public function getDayTotals() > > { > > $criteria = new Criteria; > > $sub = $criteria->getNewCriterion(ActivityPeer::ID, 'SUM('. > > ActivityPeer::HOURS . ') > 0', Criteria::CUSTOM); > > > $criteria->clearSelectColumns(); > > $criteria->add(ActivityPeer::LOG_ID, $this->getId()); > > $criteria->addSelectColumn(ActivityPeer::DAY); > > $criteria->addAsColumn('hours', 'SUM(' . > > ActivityPeer::HOURS . ')'); > > $criteria->addGroupByColumn(ActivityPeer::DAY); > > $criteria->addHaving($sub); > > $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); > > > return ActivityPeer::doSelectRS($criteria); > > } > > works great. > > > but > > public function getWeekTotals( $week) > > { > > $criteria = new Criteria(); > > $sub = $criteria->getNewCriterion(ActivityPeer::ID, > > 'SUM(hours) > > > 0', Criteria::CUSTOM); > > // $criteria->clearSelectColumns(); > > $criteria->addSelectColumn(ActivityPeer::DAY); > > $criteria->addAsColumn('hours', 'SUM(' . > > ActivityPeer::HOURS . > > ')'); > > $criteria->add(ActivitylogPeer::CONSUMER_ID, > > $this->id); > > $criteria->addAnd(ActivitylogPeer::STARTDATE, > > $week); > > $criteria->addJoin(ActivityPeer::LOG_ID, > > ActivitylogPeer::ID, > > Criteria::LEFT_JOIN); > > > > $criteria->addGroupByColumn(ActivitylogPeer::STARTDATE); > > $criteria->addGroupByColumn(ActivityPeer::DAY); > > $criteria->addHaving($sub); > > > > $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); > > > return ActivitylogPeer::doSelectRS($criteria); > > > } > > does not > > > Why ? --~--~-~--~~~---~--~~ 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] sfPropelVersionableBehaviorPlugin: creating a new resource version without modifying the resource
Hey list, I am currently looking for a way to create a new resource version without modifying the resource itself. The problem is that in order to create a new resource version the behavior's preSave() and postSave() hooks have to be called which is done implicitly by calling the resource's save() method. If I do this the resource will be modified obviously. The conditional versioning doesn't help either as this does the opposite of what I want (modifying the resource without creating a new resource version). What I'm currently doing is manually calling preSave(), addVersion() and postSave() along with some other minor tweaks. This works but requires quite some redundant code. So, am I missing something or is such a functionality not included yet? The background is that I want to (ab)use sfPropelVersionableBehaviorPlugin for some sort of approvable- changes- system. This means for example when a non-admin user edits an object the object itself is not modified but a new version is created nevertheless. The admin can then review this change and either approve and merge it with the object or reject it and just discard the resource version. Thanks and cheers, Georg --~--~-~--~~~---~--~~ 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: doselectRS questions
Asking questions is no problem. Thats community. But, please write WHAT didn't work?! What happened? What is the error? Michael On Mar 28, 7:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry I am asking so many questions. > > I have do different methods, both of which return an array. > > public function getDayTotals() > { > $criteria = new Criteria; > $sub = $criteria->getNewCriterion(ActivityPeer::ID, 'SUM('. > ActivityPeer::HOURS . ') > 0', Criteria::CUSTOM); > > $criteria->clearSelectColumns(); > $criteria->add(ActivityPeer::LOG_ID, $this->getId()); > $criteria->addSelectColumn(ActivityPeer::DAY); > $criteria->addAsColumn('hours', 'SUM(' . ActivityPeer::HOURS > . ')'); > $criteria->addGroupByColumn(ActivityPeer::DAY); > $criteria->addHaving($sub); > $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); > > return ActivityPeer::doSelectRS($criteria); > } > works great. > > but > public function getWeekTotals( $week) > { > $criteria = new Criteria(); > $sub = $criteria->getNewCriterion(ActivityPeer::ID, > 'SUM(hours) > > 0', Criteria::CUSTOM); > // $criteria->clearSelectColumns(); > $criteria->addSelectColumn(ActivityPeer::DAY); > $criteria->addAsColumn('hours', 'SUM(' . > ActivityPeer::HOURS . > ')'); > $criteria->add(ActivitylogPeer::CONSUMER_ID, > $this->id); > $criteria->addAnd(ActivitylogPeer::STARTDATE, $week); > $criteria->addJoin(ActivityPeer::LOG_ID, > ActivitylogPeer::ID, > Criteria::LEFT_JOIN); > > $criteria->addGroupByColumn(ActivitylogPeer::STARTDATE); > $criteria->addGroupByColumn(ActivityPeer::DAY); > $criteria->addHaving($sub); > > $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); > > return ActivitylogPeer::doSelectRS($criteria); > > } > does not > > Why ? --~--~-~--~~~---~--~~ 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] doselectRS questions
Sorry I am asking so many questions. I have do different methods, both of which return an array. public function getDayTotals() { $criteria = new Criteria; $sub = $criteria->getNewCriterion(ActivityPeer::ID, 'SUM('. ActivityPeer::HOURS . ') > 0', Criteria::CUSTOM); $criteria->clearSelectColumns(); $criteria->add(ActivityPeer::LOG_ID, $this->getId()); $criteria->addSelectColumn(ActivityPeer::DAY); $criteria->addAsColumn('hours', 'SUM(' . ActivityPeer::HOURS . ')'); $criteria->addGroupByColumn(ActivityPeer::DAY); $criteria->addHaving($sub); $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); return ActivityPeer::doSelectRS($criteria); } works great. but public function getWeekTotals( $week) { $criteria = new Criteria(); $sub = $criteria->getNewCriterion(ActivityPeer::ID, 'SUM(hours) > 0', Criteria::CUSTOM); // $criteria->clearSelectColumns(); $criteria->addSelectColumn(ActivityPeer::DAY); $criteria->addAsColumn('hours', 'SUM(' . ActivityPeer::HOURS . ')'); $criteria->add(ActivitylogPeer::CONSUMER_ID, $this->id); $criteria->addAnd(ActivitylogPeer::STARTDATE, $week); $criteria->addJoin(ActivityPeer::LOG_ID, ActivitylogPeer::ID, Criteria::LEFT_JOIN); $criteria->addGroupByColumn(ActivitylogPeer::STARTDATE); $criteria->addGroupByColumn(ActivityPeer::DAY); $criteria->addHaving($sub); $criteria->addAscendingOrderByColumn(ActivityPeer::DAY); return ActivitylogPeer::doSelectRS($criteria); } does not Why ? --~--~-~--~~~---~--~~ 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: session collisions
hutchic wrote: > We've recently moved to a multi-webhost multi-database setup. > > However now the session table keeps having collisions > You need to use transactions and read a little about concurrency issues I think :) the default database session backend doesn't do locking, and you're probbaly getting into issues because of that. --~--~-~--~~~---~--~~ 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: sfPropelActAsTaggableBehavior and mixins
Ouch! That hurts. Thanks for solving it. On Mar 28, 1:21 am, Georg Sorst <[EMAIL PROTECTED]> wrote: > Hi Gergo, > > according to the behavior's documentation there really is no > 'removeTags' method, just 'removeAllTags' or 'removeTag'. Are you sure > you're using the right method? > > Cheers, > Georg > > pihentagy schrieb: > > > Hi all! > > > I've tried to implement deleting all tags belonging to an object with > > mixins, but ran into the following issue: > > > I should write this way: > > > sfMixer::register('BaseOrganisation:delete:pre', array('Organisation', > > 'beforeDelete')); > > > But: it will pass a BaseOrganisation to the beforeDelete function. > > And, while the taggable plugin is a behaviour plugin for the > > Organisation class, it complains about: > > Call to undefined method BaseOrganisation::removeTags > > > How can I overcome this problem? > > > thanks > > Gergo --~--~-~--~~~---~--~~ 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: session collisions
On Fri, 28 Mar 2008, hutchic wrote: > We've recently moved to a multi-webhost multi-database setup. > > However now the session table keeps having collisions > > show slave status; > > Last_Error: Error 'Duplicate entry '6i9q8qvvjaif1k3pr0l1ardn50' for > key 1' on query. Default database: 'yourclas_yc20080325'. Query: > 'INSERT INTO sf_spy_session (sess_id, sess_data, sess_time) VALUES > ('6i9q8qvvjaif1k3pr0l1ardn50', '', 1206721057)' What are you using for the cookie domain, cookie name, etc? -- --~--~-~--~~~---~--~~ 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] session collisions
We've recently moved to a multi-webhost multi-database setup. However now the session table keeps having collisions show slave status; Last_Error: Error 'Duplicate entry '6i9q8qvvjaif1k3pr0l1ardn50' for key 1' on query. Default database: 'yourclas_yc20080325'. Query: 'INSERT INTO sf_spy_session (sess_id, sess_data, sess_time) VALUES ('6i9q8qvvjaif1k3pr0l1ardn50', '', 1206721057)' Any help is greatly appreciated. --~--~-~--~~~---~--~~ 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: persistent:true (DB connection pooling)
Fabian Lange wrote: > Hi Sumedh, > unfortunately PHP is not there yet with regards things like resource > pooling. Its PHP what limits it more than the capabilities of mysql. > Yes it can improve performance for you to use persistent connections, but > the mechanism isn't that sophisticated as in Java. > Please have a read through the comments on the manual page: > http://php.net/manual/en/function.mysql-pconnect.php > > If the DB is on the same machine, avoid persistant connections anyway. they have caused issues for me in the past where I simply ended up with 100's of connections. Connecting to a local socket is fast, real fast - no TCP overhead. --~--~-~--~~~---~--~~ 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: persistent:true (DB connection pooling)
Hi Sumedh, unfortunately PHP is not there yet with regards things like resource pooling. Its PHP what limits it more than the capabilities of mysql. Yes it can improve performance for you to use persistent connections, but the mechanism isn't that sophisticated as in Java. Please have a read through the comments on the manual page: http://php.net/manual/en/function.mysql-pconnect.php You are not taking a pooled connection, but create new persistent connections. This can cause troubles or be a lifesaver. Afaik it is still the recommended default NOT to use persistent connections. And that is what symfony does here .: Fabian -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sumedh Sent: Freitag, 28. März 2008 10:51 To: symfony users Subject: [symfony-users] persistent:true (DB connection pooling) Hi friends, I was wondering why persistent:true is not the default setting in symfony...? I've so far always used DB connection pooling when I was working with J2EE-Oracle combo...I has always thought using a new connection for every request is extremely costly...is it not so with MySQL? Persistent:true is same as using a connection pool? Where are the other settings like minimum & maximum active connections, etc...? Thanks in advance... --~--~-~--~~~---~--~~ 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: Nested Set without single root?
Hi Daniel, Richtermeister schrieb: > Hey guys, > > thanks for the responses, but now I'm confused.. > If I call make-root on a new node, and do that with many nodes > (supposedly my root layer) they all have 1 as left, and thus this > can't be right. Having a common root works, but semantically it > doesn't sit well with me. > > Somehow I never get an answer to the "rebuild right and left" > question. Does everybody build their trees from scratch? I'm certain I have seen a code snippet on this (probably on the symfony snippet page) but for the life of me I can't find it anymore. But it should give you a good starting point if you can find it :) Cheers, Georg > > Thanks though, I keep digging. > Daniel > > > On Mar 26, 6:36 am, gestadieu <[EMAIL PROTECTED]> wrote: >> I am not sure you can simply modify your node (or do it manually in >> the db!) but for sure the plugin allows you to have several root like >> you want to do. >> >> On Mar 26, 12:49 pm, Richtermeister <[EMAIL PROTECTED]> wrote: >> >>> Hi all, >>> I'm trying the propel nested set behavior for the first time, and I >>> was wondering if there always has to be one single root node, or if >>> multiple nodes (in the same scope) can be at the root. >>> For example, I'm trying to use a category table such as this: >>> -> makeup >>> --> --> anti-aging >>> --> --> mascara >>> -> lotions >>> --> --> moisturizing >>> --> --> sunscreen >>> -> nail-polish >>> where makeup, lotions, and nailpolish are the root categories.. while >>> I was just using the adjacent list method, that was no problem, but >>> now I have a hard time putting nodes at the root. If I call makeRoot() >>> on an existing node, I get an exception. >>> Also, I was wondering how I would convert an existing hierarchy from >>> an ajacent list to a nested set, so I don't have to re-build the tree >>> through the app. It seems the right and left values can always be >>> rebuild from the parent id alone.. shouldn't there be a function like >>> this bundled with the plugin? >>> Thanks for all help, >>> I'm looking forward to figure this out better. >>> Have a great night, >>> Daniel > > --~--~-~--~~~---~--~~ 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: sfGuard forgotten password functionality
On Fri, Mar 28, 2008 at 10:11 AM, Jérôme TEXIER <[EMAIL PROTECTED]> wrote: > Nicolas, thanks for opening symfonians code, that's a really great > initiative. > I didn't go deeper on it but is there any reason to have an Activation > table rather that an activation_key on the profile table ? Well, not really. Maybe I thought my sf_guard_user table had enough columns :) Someday I'll refactor the code to have a separate profile from the sfGuardUser, but this will imply heavy schema and data migrations. Stay tuned (or help me by submitting patches ^__^) ++ -- Nicolas Perriault http://prendreuncafe.com/blog GSM: 06.60.92.08.67 --~--~-~--~~~---~--~~ 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: propel:generate-crud Problem - Please help
Ahmed Oualim napisał(a): > Hi, > With symfony 1.1 propel:generate-crud is not working with my installation. > (SVN 1.1, XAMPP, XP PRO) > > Please help. > > > C:\xampp\htdocs\sim>symfony propel:generate-crud admin city City > > > > > > Unable to load > "C:\xampp\symfony\lib\plugins\sfPropelPlugin\data\generator\sfP > ropelCrud\default\template\actions\actions.class.php" generator template in: > C:\ > xampp\htdocs\sim\data/generator/sfPropelCrud/default/template, > C:\xampp\symfony\ > lib/plugins/sfPropelPlugin/data/generator/sfPropelCrud/default/template. > > > > > > -- > Regards , > > Ahmed Oualim Hi, I've got the similar problem while generating admin from generator.yml in 1.1 I found that the problem was with sfFinder on Windows Platform and relative paths (there where two "\" at the end of the path, and function str_replace does not work correctly). I add in sfFinder.class.php at line 364 $dir = in_array($dir{(strlen($dir-1))},array("\\","/")) ? substr($dir, 0,-1) : $dir; and it helped, maybe it also helps you. I don't know if is it symfony bug or my env configuration. BR --~--~-~--~~~---~--~~ 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] persistent:true (DB connection pooling)
Hi friends, I was wondering why persistent:true is not the default setting in symfony...? I've so far always used DB connection pooling when I was working with J2EE-Oracle combo...I has always thought using a new connection for every request is extremely costly...is it not so with MySQL? Persistent:true is same as using a connection pool? Where are the other settings like minimum & maximum active connections, etc...? Thanks in advance... --~--~-~--~~~---~--~~ 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: sfGuard forgotten password functionality
On 28 Mar 2008, at 09:11, Jérôme TEXIER wrote: > > Hi all, > > On 26 mar, 16:50, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: >> I agree that an 'email' column should exist by default in >> sf_guard_user table, it's a so common needed information on web apps >> nowadays. It'd be a bit overkill to manage a foreign profile table to >> just store such a column... > > In practice, cases where you have to manage a profile table for only > ONE column are very rare. > I think I never met one because not only email but things like name, > last_name are barely always needed (even they are not mandatory). > Considering this I dont think getting email outside the sf_guard_user > is such a big deal and that's a good way to providing a clean > extensible model. That's only a smaller part of the much larger issue - which is that if you have functionality dependent upon the requirement of certain data, you need to ABSOLUTELY sure that the data you depend upon is available. Currently, if using sfGuard you cannot rely on email address being available for use in forgotten password functionality - as this requires that not only sfGuardUserProfile has been implemented (which as we know is optional), but that it has also been implemented with the property you are depending on (say 'email' [and not 'email_address', 'e-mail' etc]). That's two very big - and stupid assumptions, which limit the usefulness of the plugin. Both of those assumptions are negated by simply including an 'email' column in the sf_guard_user schema. |'ve started implementing Nicolas's code, but have modified it slightly as per his suggestion using AlternativeSchema plugin to modify the sf_guard_user table independently of the sfGuard plugin. Unfortunately, I'm still going to have to modify the plugin itself to either fix - or remove - the executePassword function (unless I implement something else like executeForgot). --~--~-~--~~~---~--~~ 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: sfGuard forgotten password functionality
Hi all, On 26 mar, 16:50, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > I agree that an 'email' column should exist by default in > sf_guard_user table, it's a so common needed information on web apps > nowadays. It'd be a bit overkill to manage a foreign profile table to > just store such a column... In practice, cases where you have to manage a profile table for only ONE column are very rare. I think I never met one because not only email but things like name, last_name are barely always needed (even they are not mandatory). Considering this I dont think getting email outside the sf_guard_user is such a big deal and that's a good way to providing a clean extensible model. Nicolas, thanks for opening symfonians code, that's a really great initiative. I didn't go deeper on it but is there any reason to have an Activation table rather that an activation_key on the profile table ? BTW I really like the blue link styles on your Trac :) Jerôme Texier > > ++ > > -- > Nicolas Perriaulthttp://prendreuncafe.com/blog > GSM: 06.60.92.08.67 --~--~-~--~~~---~--~~ 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: how you debug symfony?
Hello, On Thursday 20 March 2008 14:32:58 alessandro cinelli wrote: > i've several troubles debugging my symfony projects. > I use Eclipse PDT, trying both Zend debugger and Xdebug. > I can't get Zend debugger working and Xdebug, if i want to get it working, > i have to hit repeatedly the F5 key to see something. > > I'm frustrated, it's a month that i try to make the debugger working with > symfony and PDT, and it seems that many symfony users have this problem > because i can't find any solutions on the symfony forum. > > how do you guys debug a symfony application to understand the "symfony > internals"? I've successfully used protoeditor. my blog here: http://monotrematica.blogspot.com/2007/11/php-debugger-finally.html it's not that detailed, but there's a list of packages you will need to install. fortunately, i'm on gutsy, as you note you are too, further up-thread. protoeditor is at: http://protoeditor.sourceforge.net it's beta, but it works OK. you *will* have to install one or more of the supported debuggers in your apache/php installation though. i installed that on another laptop, so i don't actually have it running on my current laptop. and it's been a while so i don't remember the details. i'll mess around with it again though and get it running again. if you get there first, a howto posted online somewhere will help a lot of people :-). i'd write the howto, but i don't have a lot of time to do that right now since taking care of my son is a fulltime job and i work on the laptop in between everything else :-). i also looked at PDT long ago. couldn't make it work then. and since i'm now in New Zealand (terrible bandwidth caps on broadband), i don't have the luxury of testing it again now since i'm going to hit my bandwidth cap very soon now. good luck. tiger -- Gerald Timothy Quimpo [EMAIL PROTECTED] http://bopolissimus.blogspot.com http://monotrematica.blogspot.com The strongest indication of a weak team is the realizaton that if you were to quit and start your own business, you would't try to poach any of your colleagues. -- http://weblog.raganwald.com/2005/01/what-ive-learned-from-failure.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 -~--~~~~--~~--~--~---