Unit test

dopo aver scritto nella cartella fuel/app/tests il test in formato PHPUnit, esegue i test via oil

php oil test

Migrations

php oil refine migrate -packages=AC -v=8

Relazioni

$group = SC\Groups::find('first', array('related' => array('users')));
$group->users

ORM

$qry = ACM\Tariffe_rca::find()
            ->
where('id_tipo_immatricolazione','=','1' )
            ->
where('cf_qt_da', '>', 10 )
            ->
where('cf_qt_a',  '<', 14 )
        ;
                
// @see Query_Builder_Select
        \Debug::dump( $qry->get_query()->__toString() );
        
$tariffe_list = $qry->get();


        foreach(
$tariffe_list as $tariffa)
        {
            \
Debug::dump( $tariffa );
            return 
$tariffa->costo;
        }