nazieb / elegant-orm Goto Github PK
View Code? Open in Web Editor NEWORM for CodeIgniter based on Laravel's Eloquent ORM
Home Page: http://nazieb.github.io/elegant-orm
License: MIT License
ORM for CodeIgniter based on Laravel's Eloquent ORM
Home Page: http://nazieb.github.io/elegant-orm
License: MIT License
Hi! I'm searching for interesting librarys for codeigniter in GIT and I have just seen your ORM. I think that it's very well developed, and getting advantage of the "active record" implementation of the framework is a good idea for saving time in the developing time of the library. Also that it's difficult to have a code as studied and "bug-proof" as the database library of codeigniter.
But I have tried to use the elegant orm in CI 3.x and I have had problems with the EXT constant that used to be declared in the index.php of CI 2.1. I have added a new definition in case somebody wants to use, as me, the library in the new CI.
Also CI 3.x doesn't give value to the $this->query->num_rows parameter as in 2.1. It remains NULL until the method with the same name is called. I have tried using the method instead the parameter in 2.1 and 3.x and it seems to work just fine. I think that for the sake of compatibility it could be a good idea to use it instead of the parameter.
How to get pivot columns like I have post_id, term_id, content
I want to get content data in there. How to get it?
$this->pivot_result = $pivot_query->result_array();
Is there any version that works with php 5.2?
How can i use the pagination methods?
I use it with HMVC in CI 3. In your default every model that use your orm should save in application/models right? but when I use with HMVC my file model local like application/app/admin/models and where I use
public function languages()
{
// $this->load->model('admin/Language');
return $this->belongsToMany('Language','title');
}
It can't refer to application/app/admin/models/language. so, do you have a recommend?
or I have to move my model to default location application/models/...
Hi my friend
thank you for your library
but there is an error on belongsToMany when nothing in table has a error on
src\relations\belongstomany.php on line 70
the fatal error message is
Fatal error: Call to a member function get() on null in
I have following this instruction https://github.com/nazieb/elegant-orm/tree/02f55dd3e17fa9d70a1cd3cfbf4c2c7179198ee7#accessors-and-mutators
but when i try var_dump/print_r using toArray(); the attribute accessor not showing.
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.