sub people_data : Local {
my ( $self, $c ) = @_;
my $rs = $c->model( 'AdventAjaxGrid2DB::People' );
my @people = ();
while ( my $person = $rs->next ) {
push( @people, {
id => $person->id,
name => $person->name,
affiliation_id => $person->affiliation_id,
I would guess that this line is returning an Affiliation object rather
than the affiliation_id then? You could test it by adding this line
after the push
$c->log->debug('Whats this - '.$person->affiliation_id."\n");
if so then you would have to look at your Model.
Maybe someone with more experience could tell you the likely reason
for this?
HTH
adam
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/