Some objects (tables, procedures, functions etc) are missing when trying to generate ddl. Go to Model | Generate DDL Script. All objects are listed checked in the "Select List" and in the "What to Generate" tabs. And both "Child and Parent Tables are Generated" option is selected. But then the ddl is generated, not all objects are included in the script.
A model consists of 19 objects only has a script for 13 objects. Why are 6 objects not included?
RESOLUTION 1:
Verify that all object types and all object are selected for inclusion when generating the ddl. In the "Select List" there are multiple tabs for different types of objects (i.e. Entities, Views, Procedures, etc). Verify if the objects that are missing is listed out in that window, and that it is checked, to be included in the ddl.
RESOLUTION 2:
Verify that the schema/database is specified. Add if possible. Or, if the objects do not have schema/database specified then make sure the option under "Database Name" in the "What to Generate" tab is set to "Not Specified".
If a database name is set under "Database Name", the tool will only include the objects in the model that include the schema/database name. Other objects without this issue will be excluded from the ddl even if it's listed and checked in the other lists.
A quick way to identify and assign objects that do not have a schema/owner/database assigned, is to use Tools | Schema/Owner assignment