Development

#2312 (make getComments more flexible)

You must first sign up to be able to contribute.

Ticket #2312 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

make getComments more flexible

Reported by: FrankStelzer Assigned to: xavier
Priority: minor Milestone:
Component: sfPropelActAsCommentablePlugin Version: 1.0.0
Keywords: Cc:
Qualification: Unreviewed

Description

I need to assign a criteria instance to the getComments method, so i could add more criterions to the according query (for example to filter only the comments of a special author). This small patch fixes the problem.


98c98 < public function getComments(BaseObject? $object, $options = array()) ---

public function getComments(BaseObject? $object, $options = array(), Criteria $criteria = null)

100c100,102 < $c = new Criteria(); ---

if(!$criteria) $c = new Criteria(); else $c = clone $criteria;

Change History

10/02/07 18:03:58 changed by xavier

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

(In [5343]) made getComments more flexible - closes #2312

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.