CJSewell
CJSewell

Reputation: 183

Reverse of Silverstripe /dev/build

Is there a way to get silverstripe to generate Dataobjects from an existing schema? Sort of the reverse to /dev/build

I have an existing project which I want to migrate to Silverstripe, unfortunately this means creating Dataobject classes for 30+ tables.

Either no one has ever done this or my google foo is not that good?

Being a dev, Im sure I could automate this myself but I'm debating if it will be any quicker than just creating them manually?

Upvotes: 0

Views: 175

Answers (1)

g4b0
g4b0

Reputation: 951

I don't think there's actually a way to do what you want, and I'm not sure it's technically feasable. Anyway there's SilverSmith module that can help you in this task, it can generate code from a YAML file: https://github.com/unclecheese/SilverSmith

Upvotes: 0

Related Questions