$tovary = Model_Tovar::find('all', array( 'related' => array( 'znacka', 'kategoria' => array( 'where' => array( 'sekcia' => Session::get('sekcia.id') ), ), ), 'where' => array( array( 'novinka', 1 ), ), ));return Orm\UndefinedRelation [ Error ]: Relation "1" was not found in the model. when i tryed
$tovary = Model_Tovar::find('all', array( 'related' => array( 'znacka' => array( ), 'kategoria' => array( 'where' => array( 'sekcia', Session::get('sekcia.id') ) ) ), 'where' => array( array( 'novinka', 1 ), ) ));return Orm\UndefinedRelation [ Error ]: Relation "sekcia" was not found in the model. what is bad ? i need
$tovary = Model_Tovar::find('all', array( 'related' => array( 'znacka', 'kategoria' => array( 'where' => array( array( 'sekcia', '=', Session::get('sekcia.id') ) ) ) ), 'where' => array( array( 'novinka', 1 ), ), ));
It looks like you're new here. If you want to get involved, click one of these buttons!