avramovic / dmlite-orm Goto Github PK
View Code? Open in Web Editor NEWDatamapper-like ORM for CodeIgniter 3
License: GNU General Public License v3.0
Datamapper-like ORM for CodeIgniter 3
License: GNU General Public License v3.0
Hi,
And then, Error display is the model class not found.
I also checked the name of file, and renamed the first character to uppercase.
So I think may had missing another step to complete setup.
Can u help to point out that step? or I mistake another step?
Hi,
It's probably me missing something obvious. I have:
$user = New User(); $user->where('email',$email); $user->include_related('company'); $user->get();
I'm getting that:
Severity: User Notice
Message: Unable to relate User with Company!
having in users table column company_id
and relations in models:
User has one 'company' and in Companies has many ('users','addresses').
You wouldn't mind to light up my journey with this problem ?
Thanks - Matt.
Hi,
I've used your DMLite-OM in a few little projects and it works well. I just got some really strange issue and I was just wondering if you ever stomp on something similar.
In my controller I do:
$meter_reading = New Meters_readings();
$meter_reading->site_id = 1234;
$meter_reading->save();
creates two identical records in database table. I have some logic in the controller loops etc, but I created a new test and it does the same. Any ideas, please.
Thanks - Matt
Hi
I'm working on little project and I found this DMLite-ORM very useful.
On every day job I'm dealing with CI2.0 with DataMapper by WanWizzard and there is one thing that is implemented (I don't know if by WanWizzard or developer of this project) that is quite good.
When I create new object and provide id it creates instantly object without calling get() function:
$country = New Country(253);
where in DMLite-ORM I need to do something like:
$country = New Country():
$country->where('id',253)->get();
Am I missing something here ?
Cheers - Matt.
Hi avramovic, thanks for sharing your project.
There is an error when performing a query with a related table as "has_many". the query creates 2 "JOIN" to the same table, when in fact they should be only 1 "JOIN" and 2 clauses "ON".
Error Number: 1066
Not unique table/alias: 'usuario'
SELECT restriccion
.* FROM restriccion
JOIN usuario
ON usuario
.rol_id
= rol
.id
JOIN usuario
ON usuario
.id
= restriccion
.usuario_id
WHERE usuario.id
= ? AND usuario.id
= ?
Filename: core/MY_Model.php
How we can implement it with HMVC and CI3
Hi, thank you for putting up this project. But I have the following error Fatal error: Call to a member function get() on null
at this line $this->groups->get();
. Does the group->get() option exist still?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.