$select = $r->select()->order( 'id ASC' );*
*Gives me an error of*
Fatal error*: Call to undefined method Recipe::select()
However...
$select = $r->getAdapter()->select()->order( 'id ASC' );
does not but still doesnt dort them by the ID of the Ingredients table
On 25/02/2008, Xaviar Rigo <[EMAIL PROTECTED]> wrote:
>
> Thanks for the replies but thats not working either, cant even see the
> error at the moment but trying to find out why.
>
> On 25/02/2008, Simon Mundy <[EMAIL PROTECTED]> wrote:
> >
> > Try
> > $select = $r->select()->order( 'id ASC' );
> > $ingredientsForRecipe = $recipe->findDependentRowset('Ingredients',
> > null, $select);
> >
> > The second argument for findDependentRowset specifies a rule name, the
> > third is for the select object.
> >
> > Kind regards
> >
> > $select = $r->select()->order( 'id ASC' );
> > $ingredientsForRecipe = $recipe->findDependentRowset('Ingredients',
> > $select);
> >
> >
> > --
> >
> > Simon Mundy | Director | PEPTOLAB
> >
> > """ " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
> >
> > 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
> > Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
> > 4124
> > http://www.peptolab.com
> >
> >
>