Giter Site home page Giter Site logo

elegant-orm's Issues

Problem with EXT constant and Num_rows

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.

Pivot columns

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();

Pagination

How can i use the pagination methods?

I have some question about your library.

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/...

belongsToMany have a problem

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.