bmidget/kohana-formo — Issue #171: has_many through single field render error
Author: xavadu
Created: 2012-01-26 18:41:04+00:00
State: open

Hello,
i have a model like that:

class Model_Movie extends ORM
{

protected $_has_many = array(
'actors' => array(
'model' => 'actor',
'foreign_key' => 'actor_id',
'through' => 'movies_actors'
),
'languages' => array(
'model' => 'language',
'foreign_key' => 'movie_id',
'through' => 'movies_languages'
),
);

[....]

public function formo()
{
return array(
),
'actors' => array(
'label' => 'Actores',
//'driver' => 'select'
),
'languages' => array(
'label' => 'Idiomas',
'driver' => 'checkboxes',
),
);
}

[...]

if in the view i do $form->render(); the checkbox group in the has_many relationship work fine,
but if i do $form->languages->render(); doesn't work

if i do a debug from $this->get('options') var in the checkboxes formo view this is empty