javis/linxphp — Issue #10: When assigning a value to a lazy load child do not call the object but creates one dinamically
Author: elezeta
Created: 2012-03-02 15:07:03+00:00
State: open
Labels: Bug

Does not work because creates a variable dynamically but is not mapped to the DB table.

$post->ticket[0]->status = Mapper::get_by_id('ticket_status',3);

This works since load the object before assignation

$post->ticket[0]->status;
$post->ticket[0]->status = Mapper::get_by_id('ticket_status',3);