Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony]propel:build-all
dtrevo
post
Post #1





Grupa: Zarejestrowani
Postów: 32
Pomógł: 0
Dołączył: 5.12.2008

Ostrzeżenie: (0%)
-----


Ucząc sie symfony korzystam z jobeet'a, wystąpił pewien problem, który mnie przerósł, nie wiem w czym tkwi problem, po zbudowaniu modelu, chciałem wygenereować formularze i walidatory. Wywala taki błąd:

CODE
$ ./symfony propel:build-all
>> propel Running "om" phing task
>> autoload reloading autoloading

Phing was run before and used many custom classes that might conflict with
your model classes. In case of errors try running "propel:build-forms" and
"propel:build-filters" alone. This is due to a PHP limitation that cannot be
fixed in symfony.

>> propel generating form classes
>> tokens /var/www/teraz/lib/form/BaseFormPropel.class.php
>> propel generating filter form classes
>> tokens /var/www/teraz/lib/filter/base/BaseFormFilterPropel.class.php
>> propel Running "sql" phing task

This command will remove all data in your database.
Are you sure you want to proceed? (y/N)

y

Notice: Undefined variable: ret in /var/www/teraz/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/sfPropelInsertSqlTask.class.php on line 130


mój plik schema.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <database defaultIdMethod="native" name="schema">
  3.  <table name="uzytkownicy">
  4.    <column name="id" type="INTEGER" primaryKey="true" required="true" autoIncrement="true"/>
  5.    <column name="login" type="VARCHAR" size="45"/>
  6.    <column name="haslo" type="VARCHAR" size="255"/>
  7.    <column name="mail" type="VARCHAR" size="255"/>
  8.  </table>
  9. </database>


w pliku schema.xml

  1. <database defaultIdMethod="native" name="schema">

powinno być w polu name
  1. <database defaultIdMethod="native" name="propel">
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 11.12.2025 - 18:52