public function createManyToOne($request, $match)
    {
        $parent = Pluf_Shortcuts_GetObjectOr404('Tenant_Ticket', $match['parentId']);
        $object = new Tenant_Comment();
        $form = Pluf_Shortcuts_GetFormForModel($object, $request->REQUEST);
        $object = $form->save(false);
        $object->ticket_id = $parent;
        $object->author_id = $request->user;
        $object->create();
        return $object;
    }
public function createManyToOne($request, $match)
    {
        $parent = Pluf_Shortcuts_GetObjectOr404('Tenant_Ticket', $match['parentId']);
        $object = new Tenant_Comment();
        $form = Pluf_Shortcuts_GetFormForModel($object, $request->REQUEST);
        $object = $form->save(false);
        $object->ticket_id = $parent;
        $object->author_id = $request->user;
        $object->create();
        return $object;
    }
public function createManyToOne ( $ request , $ match ) { $ parent = Pluf_Shortcuts_GetObjectOr404 ( 'Tenant_Ticket' , $ match [ 'parentId' ] ) ; $ object = new Tenant_Comment ( ) ; $ form = Pluf_Shortcuts_GetFormForModel ( $ object , $ request -> REQUEST ) ; $ object = $ form -> save ( false ) ; $ object -> ticket_id = $ parent ; $ object -> author_id = $ request -> user ; $ object -> create ( ) ; return $ object ; }
Create new comment

@param Pluf_HTTP_Request $request
@param array $match
@param array $p
Create new comment