From c6c5bf10de0984b96120d0774810292b5c4887dc Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 4 Aug 2024 13:18:36 +0100 Subject: [PATCH] [Blog] Edit --- Blog/blog/2024-08-04-sea-orm-1.0.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Blog/blog/2024-08-04-sea-orm-1.0.md b/Blog/blog/2024-08-04-sea-orm-1.0.md index 798c9b95c67..fbdbe18758f 100644 --- a/Blog/blog/2024-08-04-sea-orm-1.0.md +++ b/Blog/blog/2024-08-04-sea-orm-1.0.md @@ -167,16 +167,19 @@ struct EntityNameNotAIdent { * [#2146](https://github.com/SeaQL/sea-orm/pull/2146) Added `RelationDef::from_alias()` ```rust +#[derive(DeriveIden)] +pub struct Cf; + assert_eq!( cake::Entity::find() .join_as( JoinType::LeftJoin, cake_filling::Relation::Cake.def().rev(), - cf.clone() + Cf ) .join( JoinType::LeftJoin, - cake_filling::Relation::Filling.def().from_alias(cf) + cake_filling::Relation::Filling.def().from_alias(Cf) ) .build(DbBackend::MySql) .to_string(),