2

I have to work on this project written using Zend Framework. This is a project developed by somebody else that is unreachable at this time and I only have the php code but not the database.

I've never worked with Zend Framework but from what I've managed to understand it's using Zend_db to relate with a MySQL database. Like I said the mysql database is missing so I was wandering if there is any way to generate the SQL needed to create the database and tables based on the models in the PHP code.

Thanks!

2 Answers 2

3

Unfortunately no.

You will have to examine the code and reverse engineer it to create the tables/columns that you need for the application to work.

Sign up to request clarification or add additional context in comments.

2 Comments

Voted up, somehow I initially thought he wanted to know how to programmatically create tables.
I had to create all the tables by hand :/
0

You can generate tables by hand. Model tables contains table fields. If you are lucky, you'll find the FK constraints coded into the model tables.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.