I'm trying to order by and group by tag $result = Model_Tag::query()->select(\Fuel\Core\Db::expr('count(*)'),'count')->select('tag')->gr ...
I'm trying to order by and group by tag $result = Model_Tag::query()->select(\Fuel\Core\Db::expr('count(*)'),'count')->select('tag')->gr ...
Is there any way to find a record using ORM in fuelphp if the primary key of the table is not id column? For example, listing_id is my primary key. A ...
How can I execute this query using orm in fuelPHP? I don't know how to implement this: and (c=1 or d=2 or e=3) I am stuck at: Is there any way ...
Here's my user Controller I want to add user and I want the user_id (foreign key) is equal to the id (primary key) in user table Here's my user's ...
I have a many-to-many relationship created using fuelphp's ORM. The pseudocode for the relation looks like this The idea here is that I only want ...
I am running the command below on FuelPHP 1.7.3 in development mode: And it outputs the below as expected: However, when I run the migrate comma ...
Is there anyway to add two of the same type of observer to a Model in FuelPHP (ORM). (I'd actually be using a custom observer rather than the CreatedA ...
I am trying to get FuelPHP's orm to use a compound key when using the related() method. I have a db setup with two tables and I'd like to relate them ...
Can someone suggest me how to do next: I have two database table - 'products' and 'products_photo' I want adding my products to update my products ta ...
I am using FuelPHP and MySQL, and would like to use the ORM to query with a case insensitive like query against a column with a case sensitive collati ...
I am using Ormauth as auth package and used it for login at backend. Now I want to give login access for group 'moderator' along with 'superadmmin' an ...
Using fuelphp, is there a way to modify an existing \ORM\Model to convert it to \ORM\Model_Temporal? I started looking into creating a migration, whic ...
I am using ORM in FuelPHP to fetch some data on a table view I created in my data base. I followed the instruction that is given here but I'm gettin ...
I am attempting to migrate some legacy data models/schemas to a fuel API, and have run into an odd issue with the to_array() method on a model that ha ...
I've got a problem with sorting on a many-to-many relationship. What I'm trying to achieve seems like it should be fairly straightforward, but after a ...
Let's say I have a Model_Post that has_may Model_Comment. Is there any way that the updated_at field of Model_Post gets updated every time that a new ...
I have a table with a 'title' field, I am trying to get all rows in this table, and order them by the title ASC. The four records I am testing with ha ...
Trying to set conditions for has_many orm on fuelphp, but this is not working I'm just having all the related invitations back when I try to get only ...
How can I use a core classe in my ORM Model ? Is working: Isn't working: Thanks!! ...
I think FuelPHP doesn't support this feature, but I would like to know the best way to do it.... I have 3 SQL tables: users, modules, modules_users. ...