I need to bake a large project but a requirement is each model has its schema listed at the top as a multi-line comment.
Any ideas ?
Thanks, Alex
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Start in your [PATH]/cake/console/templates/classes/model.ctp file.
Manually connect to the database using an old-fashioned php connect string.
Pull the table structure in a “describe” query.
Loop through, print out the table structure in comments.
cake bake…