Skip to content

How to set up one to many self recursive create? #284

Closed Answered by Brendonovich
Dennis-Zhang-SH asked this question in Q&A
Discussion options

You must be logged in to vote

Ah if you're not trying to connect the record to itself then the problem is definitely the combination of asset::connect and parent_id::set. That's something I've been thinking about recently and I'll probably separate create into create and create_unchecked which will enforce this at a type-level.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Dennis-Zhang-SH
Comment options

@Brendonovich
Comment options

@Dennis-Zhang-SH
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Dennis-Zhang-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants