Hi. i'm really new using Symfony. 
I'm try to do a new project but when i try create schema.sql this not
work. 

Creating the project
        symfony init-project project1
Creating the App
        symfony init-app backend
creating the modules
        symfony init-modules blog
then create the schema.yml
propel:
  weblog_post:
    _attributes: { phpName: Post }
    id:
    title:       varchar(255)
    excerpt:     longvarchar
    body:        longvarchar
    created_at:
  weblog_comment:
    _attributes: { phpName: Comment }
    id:
    post_id:
    author:      varchar(255)
    email:       varchar(255)
    body:        longvarchar
    created_at:

create the model
   symfony propel-build model
and this the output
>> schema    converting "/var/www/html/walter/config/schema.yml" to XML
>> schema    putting /var/www/html/walter/config/generated-schema.xml
Buildfile: /usr/share/pear/symfony/vendor/propel-generator/build.xml
[resolvepath] Resolved /var/www/html/walter/config
to /var/www/html/walter/config

propel-project-builder > check-project-or-dir-set:

propel-project-builder > check-project-set:

propel-project-builder > set-project-dir:

propel-project-builder > check-buildprops-exists:

propel-project-builder > check-buildprops-for-propel-gen:

propel-project-builder > check-buildprops:

propel-project-builder > configure:
     [echo] Loading project-specific props
from /var/www/html/walter/config/propel.ini
 [property] Loading /var/www/html/walter/config/propel.ini

propel-project-builder > om:
    [phing] Calling Buildfile
'/usr/share/pear/symfony/vendor/propel-generator/build-propel.xml' with
target 'om'
 [property]
Loading /usr/share/pear/symfony/vendor/propel-generator/./default.properties

propel > check-run-only-on-schema-change:

propel > om-check:

propel > om:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating Peer-based Object Model for   |
     [echo] | YOUR Propel project! (NEW OM BUILDERS)!  |
     [echo] |                                          |
     [echo] +------------------------------------------+
[phingcall] Calling Buildfile
'/usr/share/pear/symfony/vendor/propel-generator/build-propel.xml' with
target 'om-template'
 [property]
Loading /usr/share/pear/symfony/vendor/propel-generator/./default.properties

propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: lib.model
[propel-om] Using template
path: /usr/share/pear/symfony/vendor/propel-generator/templates
[propel-om] Output directory: /var/www/html/walter
[propel-om] Processing: generated-schema.xml

now create the schema.sql
symfony propel-build-sql and this the output
>> schema    converting "/var/www/html/walter/config/schema.yml" to XML
>> schema    putting /var/www/html/walter/config/generated-schema.xml
Buildfile: /usr/share/pear/symfony/vendor/propel-generator/build.xml
[resolvepath] Resolved /var/www/html/walter/config
to /var/www/html/walter/config

propel-project-builder > check-project-or-dir-set:

propel-project-builder > check-project-set:

propel-project-builder > set-project-dir:

propel-project-builder > check-buildprops-exists:

propel-project-builder > check-buildprops-for-propel-gen:

propel-project-builder > check-buildprops:

propel-project-builder > configure:
     [echo] Loading project-specific props
from /var/www/html/walter/config/propel.ini
 [property] Loading /var/www/html/walter/config/propel.ini

propel-project-builder > sql:
    [phing] Calling Buildfile
'/usr/share/pear/symfony/vendor/propel-generator/build-propel.xml' with
target 'sql'
 [property]
Loading /usr/share/pear/symfony/vendor/propel-generator/./default.properties

propel > check-run-only-on-schema-change:

propel > sql-check:

propel > pgsql-quoting-check:

propel > sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for YOUR Propel project!  |
     [echo] |                                          |
     [echo] +------------------------------------------+
[phingcall] Calling Buildfile
'/usr/share/pear/symfony/vendor/propel-generator/build-propel.xml' with
target 'sql-template'
 [property]
Loading /usr/share/pear/symfony/vendor/propel-generator/./default.properties

propel > sql-template:
[propel-sql] Processing: generated-schema.xml

and the directory data/sql is empty. anything wrong.

-- 
Walter Cervini
[EMAIL PROTECTED]
Linux User Since 1990
Linux Counter 353289
Fedora Ambassador Venezuela
Fedora-ve.org Group
http://notas.cervini.com.ve

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to