Development

#3269 ([PATCH] sfPropelParanoidBehaviorPlugin 'doSelectRS' method w/ Peer Joins.)

You must first sign up to be able to contribute.

Ticket #3269 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

[PATCH] sfPropelParanoidBehaviorPlugin 'doSelectRS' method w/ Peer Joins.

Reported by: forkmantis Assigned to: fabien
Priority: minor Milestone:
Component: sfPropelParanoidBehaviorPlugin Version: 1.0.12
Keywords: Cc:
Qualification: Unreviewed

Description

sfPropelParanoidBehavior only registers hooks w/ the doSelectRS method (http://trac.symfony-project.com/browser/plugins/sfPropelParanoidBehaviorPlugin/config/config.php). This caused a problem when I used AlternativeSchema? to add the paranoid behavior to the Topic model of the sfSimpleForumPlugin. The view that lists topics does not filter out records where deleted_at is not null. The topic view uses sfSimpleForumTopicPeer::doSelectJoinsfSimpleForumPost method, which does not use the doSelectRS method.

I noticed that sfModerationPlugin does register hooks to the various doSelectJoin* methods.

Adding this patch to the sfPropelParanoidBehaviorPlugin of my local project seems to make sfSimpleForumPlugin work the way I'd expect w/ Paranoid behavior.

Attachments

sfPropelParanoidBehaviorPlugin.doSelectJoin.patch (0.6 kB) - added by forkmantis on 04/04/08 00:28:34.

Change History

04/04/08 00:28:34 changed by forkmantis

  • attachment sfPropelParanoidBehaviorPlugin.doSelectJoin.patch added.

04/04/08 00:29:48 changed by forkmantis

  • component changed from other to sfPropelParanoidBehaviorPlugin.

05/15/08 07:00:08 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [8971]) sfPRopelParanoidBehavior: added hooks for all Peer select methods (closes #3269)