kohana-orm
not getting user id from from Auth::instance->get_user()-id in Kohana
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[详细]
2023-03-20 20:06 分类:问答one-to-many relation in Kohana
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.[详细]
2023-03-20 06:57 分类:问答Kohana 3.1 orm. How to make this has_one relashionship?
I have 2 models: Address and Country. Now, every address has exactly one country. So Address model has:[详细]
2023-03-18 23:59 分类:问答Is it possible to re-use a Kohana ORM query for the row count?
So I have my query as so... $records = ORM::factory(\'category\'); Add a WHERE clause as so... $records = $records->where(\'categoryid\', \'LIKE\', \'aa\');[详细]
2023-03-18 14:40 分类:问答Kohana Formo Error: Invalid method formo called in Model_User
Trying to use the Formo module with ORM and Kohana 3.1, but keep getting this error... Invalid method formo called in Model_User[详细]
2023-03-16 05:04 分类:问答Where This Code Belongs? MVC & ORM
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[详细]
2023-03-15 19:49 分类:问答Kohana 3 (ORM or DB) returning single field
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[详细]
2023-03-14 04:12 分类:问答Kohana 3.1 ORM relationships question
I\'m using kohana3. tables: users id username friend_id user_relationship开发者_运维知识库s id user_id friend_id[详细]
2023-03-11 01:57 分类:问答Kohana 3.1 ORM: Empty model property value saved as 0 (zero) instead of NULL
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[详细]
2023-03-09 16:54 分类:问答Kohana 2 ORM custom primary key generating an error
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[详细]
2023-03-07 12:07 分类:问答