I'm using schema.yml to manage my models and to create the tables  
until the database structure settles down.  I'm trying to create a  
multi-column index on a table and am not having any success.  Here's  
the table:

Subcategory:
   tableName: subcategory
   relations:
     Category: ~
   columns:
     id:
       notnull: true
       primary: true
       autoincrement: true
       type: integer
       length: 11
     category_id:
       type: integer
       notnull: true
     name:
       type: string
       length: 50
       notnull: true
   indexes:
     name_category_id_idx:
       columns:
         category_id: ~
         name: ~
       type: unique

In the terminal, when I run "symfony doctrine-build-sql" with the  
index above, I get the following notices printed several times:

PHP Notice:  Array to string conversion in /Users/charley/projects/ 
dev2/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection.php on  
line 590

PHP Notice:  Array to string conversion in /Users/charley/projects/ 
dev2/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export.php on  
line 474

Looking at the SQL generated:

CREATE UNIQUE INDEX name_category_id_idx ON subcategory (Array, Array);

Is this a bug or have I somehow formatted this wrong?  I got the  
format directly from the doctrine manual.

Charley

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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