On 5 kol, 13:25, elliesdad <[EMAIL PROTECTED]> wrote:
> I am using Symfony 1.1.1 with the sfPropelPlugin on a Microsoft
> Windows platform.  I have successfully used it to create a schema.yml
> from an existing database.  However, I have two issues:
>
> 1.  The generated schema.yml doesn’t seem to recognise my foreign
> keys.  They just appear as indexes as below:
>
> _indexes: { fk_category_item: [category_id], fk_itemtype_item:
> [type_id] ...
>
> And in the schema-generated.xml I get the xml equivalent (e.g. without
> any FOREIGN KEY MySQL keyword)
>
> From what I understand MySQL does automatically create indexes on
> foreign key fields but there seems to be no recognition of the table
> join.
>
> 2.  When I run the command:
>
> symfony propel:build-model
>
> I get the following:
>
> Fatal error: Cannot instantiate interface Platform

the above error comes from missing directive in your propel.ini, to be
exact:

propel.database

you should set it to RDBMS that you are using ( mysql, postgre,
oracle, etc )


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to