I am using auth module of kohana. I did register and login and its working fine. But when i do Auth::instance()->get_user()->id i get NULL
I have 3 tables users , roles and roles_users. The roles_users table have user_id and role_id N开发者_JS百科ow my models are Model_User, Model_Role, Model_User_Role.
I have 2 models: Address and Country. Now, every address has exactly one country. So Address model has:
So I have my query as so... $records = ORM::factory(\'category\'); Add a WHERE clause as so... $records = $records->where(\'categoryid\', \'LIKE\', \'aa\');
Trying to use the Formo module with ORM and Kohana 3.1, but keep getting this error... Invalid method formo called in Model_User
I\'m reading unofficial Kohana 3.0 docs at the moment. Where this code belongs? In controller or in model (class Model_MyName extends ORM model?)? I think that it should go in model. Am I right? If th
What is the best way to retrieve results from one field using DB or ORM? For example, I need an array of user\'s friends ids to pass them to other function. I\'m currently doing it like this开发者_St
I\'m using kohana3. tables: users id username friend_id user_relationship开发者_运维知识库s id user_id friend_id
I have two models, Product and Product_Methodology. In my product edit view I have a select form field to select one of many methodologies or none (empty first option). In my products table I have a I
In my DB I have a jobs table, a details table, and an employers table. jobs and details are in a one-to-one relationship, and employers and details are in a one-to-many relationship. Not all jobs hav