[Catalyst] Jason Kohles' tutorial on ExtJs editable data gridsandCatalyst

Ian Sillitoe ian at sillit.com
Fri May 1 20:43:30 GMT 2009


> You want to do..
>
> $person->affiliation_id-> affiliation_id
>
>
Or you could change the name of the belongs_to() relationship in your model
to something like "affiliation" rather than "affiliation_id" which seems
more intuitive:

$person->affiliation_id; # "id"

$person->affiliation; #
AdventAjaxGrid2::Model::AdventAjaxGrid2DB::Affiliation

$person->affiliation->affiliation_id; # "id"



-- =

Ian Sillitoe
CATH Team -- http://cathdb.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090501/29c7a=
f4e/attachment.htm


More information about the Catalyst mailing list