Hello,
I've an issue with the Entity macro and relations.
I'm trying to make a one-to-many relationship so i'm using the following syntax:
#[siblings(("user_data",Cascade),("user_data2",Cascade))]
But the Entity macro gives me an error as soon as there's more than one relation:
error[E0618]: expected function, found `(&'static str, reindeer::DeletionBehaviour)`
|
| #[derive(Serialize, Deserialize, Entity)]
| ^^^^^^ call expression requires function
|
= note: this error originates in the derive macro `Entity` (in Nightly builds, run with -Z macro-backtrace for more info)
Hello, I've an issue with the Entity macro and relations. I'm trying to make a one-to-many relationship so i'm using the following syntax:
#[siblings(("user_data",Cascade),("user_data2",Cascade))]
But the Entity macro gives me an error as soon as there's more than one relation:
This happens with siblings and children.