Skip to content

Commit 4cfbfcf

Browse files
authored
Document that the nested ActiveModel builder requires the dense entity format (#2879)
Adds a note to the nested object-graph builder example (README and crate docs) that it requires the SeaORM 2.0 dense entity format.
1 parent 2f93589 commit 4cfbfcf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ smart_user
143143
Persist an entire object graph: user, profile (1-1), posts (1-N), and tags (M-N)
144144
in a single operation using a fluent builder API. SeaORM automatically determines
145145
the dependencies and inserts or deletes objects in the correct order.
146+
This requires the SeaORM 2.0 dense entity format.
146147

147148
```rust
148149
// this creates the nested object as shown above:

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
//! Persist an entire object graph: user, profile (1-1), posts (1-N), and tags (M-N)
218218
//! in a single operation using a fluent builder API. SeaORM automatically determines
219219
//! the dependencies and inserts or deletes objects in the correct order.
220+
//! This requires the SeaORM 2.0 dense entity format.
220221
//!
221222
//! ```
222223
//! # use sea_orm::{DbConn, DbErr, entity::*, query::*, tests_cfg::*};

0 commit comments

Comments
 (0)