kohana-orm
Sort mysql results based on data from another table in Kohana
I inherited this Kohana project and have little experience with it and ORM. Table structure is like this:[详细]
2023-04-12 16:30 分类:问答Kohana (ORM) - how to find record from 2 tables
class Model_Category extends ORM { protected $_has_many = array( \'film\' => array(\'through\' => \'films_categories\')[详细]
2023-04-10 09:10 分类:问答Kohana 2 ORM: ->with() for has_many relations
We have a table for articles, and a table for locale data for articles. class Article_Model extends ORM {[详细]
2023-04-07 06:46 分类:问答Kohana 3.0: how to get distinct entries?
In a Kohana query, I need to retrieve only one element having the same id. I have a method in the model:[详细]
2023-04-03 06:22 分类:问答Kohana 3.2 ORM and PDO
I am giving Kohana a try and I was trying to use the ORM + PDO + MySQL database, and I don\'t seem to find an answer in google or SO.[详细]
2023-04-02 23:58 分类:问答MySQL - How to query items by tags, order by matched tag count
My schema looks something like this: items ( id, title, blah ) tags (id, name ) item_tags ( item_id, tag_id )[详细]
2023-04-01 14:53 分类:问答Can extra, unneeded $_POST keys harm the system?
开发者_如何学CLets imagine for where are inputs like: <input name=\"x\" /> <input name=\"y\" />[详细]
2023-03-28 03:54 分类:问答How to use BETWEEN clause in Kohana ORM
I am new to kohana. I am using ORM for getting data. I want to build a query in which BETWEEN clause is there. as following[详细]
2023-03-25 17:20 分类:问答How to validate email using Kohana 3.1 ORM
I\'m using Kohana 3.1 framework to do a simple validation using Kohana\'s ORM and Validation built in classes. Let\'s see the code...[详细]
2023-03-22 07:14 分类:问答Kohana ORM and file upload issue... setting record logo to equal record logo when there is no image
This 开发者_Go百科causes this error... Operand should contain 1 column(s) [ UPDATE record SET logo = (\'\',[详细]
2023-03-21 14:04 分类:问答