We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233dbbe commit c6c5bf1Copy full SHA for c6c5bf1
Blog/blog/2024-08-04-sea-orm-1.0.md
@@ -167,16 +167,19 @@ struct EntityNameNotAIdent {
167
168
* [#2146](https://github.com/SeaQL/sea-orm/pull/2146) Added `RelationDef::from_alias()`
169
```rust
170
+#[derive(DeriveIden)]
171
+pub struct Cf;
172
+
173
assert_eq!(
174
cake::Entity::find()
175
.join_as(
176
JoinType::LeftJoin,
177
cake_filling::Relation::Cake.def().rev(),
- cf.clone()
178
+ Cf
179
)
180
.join(
181
- cake_filling::Relation::Filling.def().from_alias(cf)
182
+ cake_filling::Relation::Filling.def().from_alias(Cf)
183
184
.build(DbBackend::MySql)
185
.to_string(),
0 commit comments