Subject: | +select +as in resultset search does not add a column |
When I add additional columns to my resultset with the +select attribute and +as modifier to
give it a custom name, I cannot access the resulting column in the resultset. EG:
my $objects = $self->schema->resultset('Todo')->search(undef,{
+select => [
\'DATEDIFF(me.duedate,NOW())'
],
+as => [
'daysleft'
]
});
Resultset:
'_column_data' => {
'owner' => '1',
'status' => 'open',
'name' => 'test validation',
'type' => '1',
'id' => '18',
'duedate' => undef
}
When I manually select the columns with normal 'select' and 'as' modifiers it does work