symfony build-sql
Out of curiosity, what is it supposed to output when the command is run successfully?
Buildfile: ~myfolder/lib/symfony-trunk/data/symfony/bin/build.xml
sf > build-om:
[phing] Calling Buildfile '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build.xml' with target 'om'
propel-project-builder > projectcheck:
propel-project-builder > configure:
[echo] Loading project-specific props from ~myfolder/www/sfTe
st/config/build.properties
propel-project-builder > om:
[phing] Calling Buildfile '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build-propel.xml' with target 'om'
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 '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build-propel.xml' with target 'om-template'
propel > om-template:
[propel-om] Target database type: mysql
[propel-om] Target package: model
[propel-om] Using template path: ~myfolder/lib/symfony-trunk/lib/p
ropel-generator/templates
[propel-om] Output directory: ~myfolder/www/sfTest/lib
[propel-om] Processing: schema.xml
[propel-om] Processing Datamodel : schema.xml
[propel-om] - processing database : symfony
[propel-om] + weblog_post
[propel-om] -> BasePostPeer [builder: sfPeerBuilder]
[propel-om] -> BasePost [builder: sfObjectBuilder]
[propel-om] -> PostMapBuilder [builder: PHP5MapBuilderBuilder]
[propel-om] -> PostPeer [builder: PHP5ExtensionPeerBuilder]
[propel-om] -> Post [builder: PHP5ExtensionObjectBuilder]
[propel-om] + weblog_comment
[propel-om] -> BaseCommentPeer [builder: sfPeerBuilder]
[propel-om] -> BaseComment [builder: sfObjectBuilder]
[propel-om] -> CommentMapBuilder [builder: PHP5MapBuilderBuilder]
[propel-om] -> CommentPeer [builder: PHP5ExtensionPeerBuilder]
[propel-om] -> Comment [builder: PHP5ExtensionObjectBuilder]
BUILD FINISHED
Total time: 1 minutes 21.36 seconds
Buildfile: ~myfolder/lib/symfony-trunk/data/symfony/bin/build.xml
sf > build-sql:
[phing] Calling Buildfile '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build.xml' with target 'sql'
propel-project-builder > projectcheck:
propel-project-builder > configure:
[echo] Loading project-specific props from ~myfolder/www/sfTe
st/config/build.properties
propel-project-builder > sql:
[phing] Calling Buildfile '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build-propel.xml' with target 'sql'
propel > check-run-only-on-schema-change:
propel > sql-check:
propel > sql:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating SQL for YOUR Propel project! |
[echo] | |
[echo] +------------------------------------------+
[phingcall] Calling Buildfile '~myfolder/lib/symfony-trunk/lib/pro
pel-generator/build-propel.xml' with target 'sql-template'
propel > sql-template:
[propel-sql] Processing: schema.xml
[propel-sql] Target database type: mysql
[propel-sql] Target package:
[propel-sql] Using template path: ~myfolder/lib/symfony-trunk/lib/
propel-generator/templates
[propel-sql] Output directory: ~myfolder/www/sfTest/data/sql
[propel-sql] Generating SQL tables for database: symfony
[propel-sql] Writing to SQL file: ~myfolder/www/sfTest/data/sql/sc
hema.sql
[propel-sql] + weblog_post
[propel-sql] + weblog_comment
BUILD FINISHED
Total time: 1 minutes 1.62 second
# symfony -t build-model
>> invoke build-model (first_time)
>> invoke project_exists (first_time)
>> execute project_exists
>> execute build-model
Venatyr wrote: I am having the exact same problem on Linux.
- Code: Select all
# symfony -t build-model
>> invoke build-model (first_time)
>> invoke project_exists (first_time)
>> execute project_exists
>> execute build-model
And that's it. I have no idea what's wrong.
acidbox wrote:
You don't need to use -t when running build-model or build-sql
-sh-3.00$ symfony build-model
ERROR: pake - property "symfony/name" does not exist
-sh-3.00$ symfony build-sql
ERROR: pake - property "symfony/name" does not exist[symfony]
name=YOUR_PROJECT_NAME
-sh-3.00$ cat properties.ini
[symfony]
name=myproject
-sh-3.00$mkdir myproject
cd myproject
symfony init-project myproject
symfony init-app myapp<html><body></body></html><VirtualHost *:80>
DocumentRoot /var/www/html/myproject/web
ServerAdmin root@localhost
ServerName testapp.com
ServerAlias www.testapp.com
DirectoryIndex index.php index.html
<Directory "/var/www/html/test/web">
AllowOverride All
</Directory>
</VirtualHost>
192.168.0.103 testapp.com
192.168.0.103 www.testapp.com
symfony build-modelERROR: pake - property "symfony/name" does not existfunction pake_properties($property_file)
{
$file = $property_file;
if (!file_exists($file) && file_exists(getcwd().DIRECTORY_SEPARATOR.$property_file))
{
$file = getcwd().DIRECTORY_SEPARATOR($property_file);
}
if (file_exists($file))
{
pakeApp::get_instance()->set_properties(parse_ini_file($file, true));
}
else
{
throw new Exception('properties file does not exist');
}
}
$file = getcwd().DIRECTORY_SEPARATOR($property_file);
$file = getcwd().DIRECTORY_SEPARATOR.$property_file;
function pake_properties($property_file)
{
$file = $property_file;
if (!file_exists($file) && file_exists(getcwd().DIRECTORY_SEPARATOR.$property_file))
{
$file = getcwd().DIRECTORY_SEPARATOR.$property_file;
}
echo '<!--'." ";
echo '$file = '.$file." ";
print_r(parse_ini_file($file, true));
echo '-->'." ";
if (file_exists($file))
{
pakeApp::get_instance()->set_properties(parse_ini_file($file, true));
}
else
{
throw new Exception('properties file does not exist');
}
} -sh-3.00$ symfony build-model
ERROR: pake - property "symfony/name" does not existfunction run_project_exists($task, $args)
{
echo '<!-- function run_project_exists has been run!!! -->'."\m";
if (!file_exists('SYMFONY'))
{
throw new Exception('you must be in a symfony project directory');
}
pake_properties('config/properties.ini');
}-sh-3.00$ symfony build-model
ERROR: pake - property "symfony/name" does not existArray
(
[0] => project_exists
)-sh-3.00$ pear list-all --channel=symfony
Retrieving data...0%.All packages:
=============
Package Latest Local
symfony/pake 1.0.74 1.0.74 pake
symfony/symfony 0.5.89 0.5.89 symfony framework
-sh-3.00$ symfony build-model
ERROR: pake - property "symfony/name" does not exist
// return if already invoked
if ($this->already_invoked) return;
$this->already_invoked = true;
// run prerequisites
$tasks = self::get_tasks();
echo 'taskName = '.$this->name." ";
echo '$this->prerequisites = '." ";
print_r($this->prerequisites);
foreach ($this->prerequisites as $prerequisite)
{
...-sh-3.00$ symfony build-model
taskName = build-model
$this->prerequisites =
Array
(
)
ERROR: pake - property "symfony/name" does not existReturn to Installation and setup
Users browsing this forum: No registered users and 0 guests