Hi, i have a second mysql database (another host). i like to use it with ORM.
Someone has a little example to realize it.
Sorry, before i have never found one.
thank you
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi, i have a second mysql database (another host). i like to use it with ORM.
Someone has a little example to realize it.
Sorry, before i have never found one.
thank you
Hi,
I think this is what you are looking for...
http://www.silverstripe.org/customising-the-cms/show/13692#post293308
Thank you.
But my plan is to use the intern ORM with a second database.
native sql statements are not my problem.
There is no difference - once you have done the DB::connect you can use the ORM on whichever database it is (provided it is indeed of the right datamodel)
Thank you.
I understand what do you mean.
But how i can configure my DataObject Extension to my exist database struktur?
My table dont have the fields ClassName, Created, LastEdited. The primary key have a another name.
The creation on dev/build is not needed.
How i can solve the problems?