OK, after a lot of tweaking I've got this working. Here's what I had to do:

  * use YAML files
    (is it possible to make it more explicit in the book that you
    cannot use xml files?)

  * use the same package attribute in both the project and the plugin
    (can we make this clearer in the book?)

  * make sure to delete and residual schema.sql files after changing the
    package attribute

Am I right in thinking that from 1.1 onwards, we can now extend sfGuard 
using this method rather than using the sfGuard profile method? If so, I 
think this would be a perfect working example to use in the book. Anyone 
else?

Tom

Tom Haskins-Vaughan wrote:
> Sorry. I'm using 1.1. I've had a look at chapter 17 (1.1) but I'll give 
> it a go in YAML.
> 
> Francois Zaninotto wrote:
>> Which version of symfony are you using? As far as I know, extending a
>> plugin's schema works natively for symfony 1.1 (and with the
>> sfPropelAlternativeSchemaPlugin for symfony 1.0) but only with YAML
>> schemas.
>>
>> http://www.symfony-project.org/book/1_1/17-Extending-Symfony#Customizing%20a%20Plug-In%20for%20an%20Application
>>
>> François
>>
>> 2008/9/8 Tom Haskins-Vaughan <[EMAIL PROTECTED]>:
>>> Actually, it doesn't seem to be reading the file at all. I added some
>>> incorrect code to 'break' the XML and it didn't throw an error when I
>>> tried to build the model. Here's the file:
>>>
>>> // symfony/config/tsmSbpPlugin_schema.custom.xml:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>  <database name="propel" defaultIdMethod="native" noxsd="true"
>>> package="foo.lib.model">
>>>  <!-- ARTICLE -->
>>> cddc
>>>   <table name="tsm_sbp_article" phpName="tsmSbpArticle">
>>>     <column name="dummy_column" type="VARCHAR" size="10" default="dummy
>>> text" />
>>>   </table>
>>> </database>
>>>
>>>
>>> Tom Haskins-Vaughan wrote:
>>>> Hi,
>>>>
>>>> Has anyone had any success with extending a plugi model? I am trying to
>>>> extend a plugin's table by creating a schema.xml file in my project. It
>>>> essentially just adds one more field. The file seems to be being read:
>>>>
>>>> [propel-om] Processing: generated-tsmSbpPlugin-schema.xml
>>>>
>>>> ...but the extra field is not added. Has anyone got this working?
>>>>
>>>> Any help much appreciated.
>>>>
>>>> Tom
>>> --
>>> Tom Haskins-Vaughan
>>> Temple Street Media: Design and Development for the Web
>>> [EMAIL PROTECTED] | www.templestreetmedia.com
>>>
> 

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.com


--~--~---------~--~----~------------~-------~--~----~
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