Relational icon indicating copy to clipboard operation
Relational copied to clipboard

Is there a way to select columns without Sql:: and database views?

Open mrsoto opened this issue 10 years ago • 0 comments

Hello, Each time I need to reduce overhead related to too many unneeded columns I've to create a database view and fetch from this view. The question is: is there a way to set output columns?

I tried this ( from issue #24):

    $mapper->bill_notice_list = c\Filtered::by('description', 'next_notification_date')->bill_notice();
    $billNotices = $mapper->bill_notice_list(
        array('usercustomer_id' => $usercustomerId)
    )->fetchAll();

but no data retrieved.

mrsoto avatar Oct 25 '15 16:10 mrsoto