New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New feature] DatabaseSeeder #26
Comments
Semi-Offtopic: |
@thedancingbard, explain in more details, please. As I can guess, some things might should be implemented in the Entity itself. |
I guess I was going to ask the same question. Is there a way to parse a tree from an array, representing its structure. Something like this: Entity->parseTree(
[
[ 'id' => 0 ],
[ 'id' => 1 ],
[ 'id' => 2,
'children' => [
[ 'id' => 3 ],
[ 'id' => 4,
'children' => [
[ 'id' => 5 ],
],
],
],
],
]
); |
@kapooostin, nope at the moment. You can only get a whole tree with the If you're interested you could create another issue for that and offer your implementation of such a thing :) |
@kapooostin if you create an issue for your request we can start discussing it in a separate thread, i am building a recursive function that works as you asked but we have to clarify some points. |
@vjandrea, @thedancingbard already have created one. |
I close this issue because we aren't talking about the seeder but about the automatic creation from prepared array or something. |
We can discuss here how to implement a DatabaseSeeder for ClosureTable.
In particular, how to implement a scan of an array of nodes.
The text was updated successfully, but these errors were encountered: