Comments (6)
Hi @aldiand,
I think you can just use model name without namespace for relationship function.
Thank you for your advice.
from codeigniter-model.
Thanks for reply,
I got error can't find model if I just use model name, because my model is inside restapi folder.
maybe autoload may fix it, but I don't want to put it into autoload because the number of models
from codeigniter-model.
Hi @aldiand,
Do you use other libraries for autoloading at the same time?
For example: https://github.com/yidas/codeigniter-psr4-autoload
from codeigniter-model.
No, I just use this library without bundle
from codeigniter-model.
Thank you for your advice.
The issue has been fixed in version 2.19.2.
Cheers
from codeigniter-model.
You're welcome
from codeigniter-model.
Related Issues (20)
- setAlias() not working HOT 2
- get the changed/old attributes values HOT 2
- Add refresh method to re-populate data HOT 1
- CREATED_AT and UPDATED_AT aren't optimal at all. HOT 2
- Undefined index when get property with values of null HOT 1
- hasOne does not work with empty() HOT 2
- Unknown column error HOT 4
- Query count where HOT 1
- does it work for MS SQL? HOT 2
- [feature] Support for `hasManyThrough` and `hasOneThrough` HOT 4
- VSCode hints on $this in Static Method HOT 3
- Error save data on update from ORM (Sql Server)
- Compatible with CI4 HOT 2
- batchUpdate not working
- ORM feature Save & Update HOT 2
- findOne error with postgresql HOT 1
- Cache HOT 1
- Can order_by be added to findAll method? HOT 2
- data is deleted always appear for query or_like on soft delete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-model.