kohana-orm
Self referencing relation with followers|friends users
To make relationship between users was created a table that looks like. sql CREATE TABLE `friends`( `from` INT NOT NULL,[详细]
2023-02-04 10:24 分类:问答Kohana 3: Callback validation
NOTE: This question refers to Kohana 3.0 only.Kohana 3.1 and newer handle validation callbacks in a completely different way.[详细]
2023-01-31 05:36 分类:问答KOHANA 3 ORM: How to use sha1 in ->where
I\'d like to make select this way select from post where sha1(id)=$id; So I thought this could be in KO3 ORM somethink like:[详细]
2023-01-30 22:29 分类:问答Kohana 3 ORM: Saving relationships
<?php class Model_Cliente extends ORM { protected $_table_name = \'clientes\'; protected $_primary_key = \'id\';[详细]
2023-01-30 02:52 分类:问答Bug in Kohana 3 ORM?
Sorry to ask all these questions about Kohana. They usually get ignored. I think I just found a bug. I\'m making a join between two tables that are not directly related.[详细]
2023-01-30 00:28 分类:问答KOHANA - ErrorException [ Fatal Error ]: Cannot use object of type Model as array
Can you advise on how to resolve the following error开发者_开发百科: ErrorException [ Fatal Error ]: Cannot use object of type Model_Branch as array[详细]
2023-01-29 05:23 分类:问答Integrating Propel ORM into Kohana 3.x?
I\'m using Kohana 3.x for about a month now, I am pretty happy so far. But recently a friend of mine recommended the Propel-ORM to me. Has anybody experience with both the Kohana ORM and Propel ORM? I[详细]
2023-01-28 17:59 分类:问答Kohana 3 ORM - How to tell if the current model being saved is new?
In my ORM model, I\'d like to save some 开发者_开发知识库default values which are calculated based on other values. The best I could come up with is:[详细]
2023-01-26 01:07 分类:问答multi insert in kohana orm3
In my application i have a loop that executes about 1000 times, inside it i\'m creating object and saving it. This is the part of application where i populate my database with data. In common this loo[详细]
2023-01-21 20:12 分类:问答Kohana ORM: Get results based on value of a foreign table
taxonomies -id -name taxonomy_type -taxonomy_id -type_id I\'ve configured two models: class Model_Taxonomy{[详细]
2023-01-20 06:36 分类:问答