Giter Site home page Giter Site logo

dmlite-orm's People

Contributors

avramovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pennicilin

dmlite-orm's Issues

Duplicated data

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

not working after put "MY_Model.php" file to "application/core" folder

Hi,

I did like the following your tutorial:

Simply, download MY_Model.php from application/core/ folder and place it in your project. That's the only file you need. Find out more in this project's Wiki.

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?

include_related doesn't seems to be working

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.

Error: wrong formed query in include related

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

Line Number: 367

It's not an issue - rather question or request.

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.

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.