Development

#2663 (Wrong example executeShow() in My first symfony project)

You must first sign up to be able to contribute.

Ticket #2663 (closed documentation: fixed)

Opened 1 year ago

Last modified 1 year ago

Wrong example executeShow() in My first symfony project

Reported by: timu Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.1.0 DEV
Keywords: My first symfony project Cc:
Qualification: Unreviewed

Description

executeShow method point 1.0.X series documentation, it's should be,

public function executeShow($request)
{
  $this->post = PostPeer::retrieveByPk($request->getParameter('id'));
  $this->forward404Unless($this->post);
 
  $c = new Criteria();
  $c->add(CommentPeer::POST_ID, $request->getParameter('id'));
  $c->addAscendingOrderByColumn(CommentPeer::CREATED_AT);
  $this->comments = CommentPeer::doSelect($c);
}

Change History

12/27/07 15:48:53 changed by fabien

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

in r6756