Comments (6)
Different relations between same two models is not supported.
from jaguar_orm.
Isn't this, a very uncommon scenario?
from jaguar_orm.
In my previous work we had this a lot, where you can have like
Product:
Category masterCategory;
List<Category> subCategories;
Or something like:
User:
List<Tag> selfAddedTag
List<Tag> adminAddedTag
Maybe it's uncommon but might be nice to have at some point, for now I don't know enough the data I'll nice to put in DB to know if I need this but if I need I might work on this :)
Should be only generation problem as both separately are handle correctly
from jaguar_orm.
Ok.
How do you differentiate if a row belongs to the scalar (masterCategory) or the list (subCategories) when fetching it?
from jaguar_orm.
OneToOne and OneToMany is not possible (or not easily)
but OneToOne and ManyToMany is "easy" because oneToOne will have the given id inside his table and subCategories will be under the pivot table
from jaguar_orm.
Ok :)
from jaguar_orm.
Related Issues (20)
- Should support inherited classes
- jaguar_query_sqljocky-2.2.4/adapter.dart - 'StreamedResults' can't be assigned to type Results
- jaguar_query_sqljocky-2.2.4/adapter.dart - missing Alter, insertMany, updateMany, upsert, upsertMany
- jaguar_query_sqljocky-2.2.4/adapter.dart - find(Find st) method returns wrong type
- jaguar_query_sqljocky-2.2.4/adapter.dart - inconsistent method name?
- upsert: critical error in update HOT 1
- InsertMany with primaryKey set to auto
- Error with SQLite: E/SQLiteLog(22990): (1) near ")": syntax error HOT 11
- Methods missing of Bean
- UnimplementedError: InsertMany is not implemented yet!
- Field artisteMorceau has exception: Exception: Field type not recognised: Artiste!
- Add ability to prevent empty string insert
- Print SQL from Find statement HOT 1
- Web DB support HOT 2
- jaguar_orm RangeError: Invalid value: Not in range 0..1114111, inclusive: -1 HOT 1
- part '<classaname>.jorm.dart'; not found HOT 1
- Compatibility issues with build_runner HOT 8
- PostgreSQL DateTime field "insert" crash
- BLOB type: Field type not recognised: Uint8List!
- analyzer version too low for compatibility with null-safe packages HOT 8
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 jaguar_orm.