Symfony Propel
2011年05月27日
既存のSymfonyプロジェクトを見てみると、ORMがdoctrineとは違うディレクトリ構成のようだ。
ということはORMとしてpropelを使っているのか?
分からないので"--orm=Propel"でプロジェクトを作成し、アプリケーションを作成してみる。
アプリケーション(admin2)を作成してみる。
アプリケーションの作成はpropelは関係ないようだ。
ということはORMとしてpropelを使っているのか?
分からないので"--orm=Propel"でプロジェクトを作成し、アプリケーションを作成してみる。
D:\pleiades3.5\Symfony>\pleiades3.5\xampp\php\php.exe lib\vendor\symfony\data\bin\symfony generate:project knmprj --orm=Propel
>> dir+ D:\pleiades3.5\Symfony\apps
>> dir+ D:\pleiades3.5\Symfony\cache
>> dir+ D:\pleiades3.5\Symfony\config
>> file+ D:\pleiades3.5\Symfony\.../ProjectConfiguration.class.php
>> file+ D:\pleiades3.5\Symfony\config/properties.ini
>> file+ D:\pleiades3.5\Symfony\config/rsync_exclude.txt
>> dir+ D:\pleiades3.5\Symfony\data
>> dir+ D:\pleiades3.5\Symfony\data/fixtures
>> file+ D:\pleiades3.5\Symfony\data/fixtures/fixtures.yml
>> dir+ D:\pleiades3.5\Symfony\lib/form
>> file+ D:\pleiades3.5\Symfony\lib/form/BaseForm.class.php
>> dir+ D:\pleiades3.5\Symfony\log
>> dir+ D:\pleiades3.5\Symfony\plugins
>> file+ D:\pleiades3.5\Symfony\symfony
>> dir+ D:\pleiades3.5\Symfony\test
>> dir+ D:\pleiades3.5\Symfony\test/bootstrap
>> file+ D:\pleiades3.5\Symfony\test/bootstrap/functional.php
>> file+ D:\pleiades3.5\Symfony\test/bootstrap/unit.php
>> dir+ D:\pleiades3.5\Symfony\test/functional
>> dir+ D:\pleiades3.5\Symfony\test/unit
>> dir+ D:\pleiades3.5\Symfony\web
>> file+ D:\pleiades3.5\Symfony\web/.htaccess
>> dir+ D:\pleiades3.5\Symfony\web/css
>> file+ D:\pleiades3.5\Symfony\web/css/main.css
>> dir+ D:\pleiades3.5\Symfony\web/images
>> dir+ D:\pleiades3.5\Symfony\web/js
>> file+ D:\pleiades3.5\Symfony\web/robots.txt
>> dir+ D:\pleiades3.5\Symfony\web/uploads
>> dir+ D:\pleiades3.5\Symfony\web/uploads/assets
>> tokens D:/pleiades3.5/Symfony/.../ProjectConfiguration.class.php
>> tokens D:/pleiades3.5/Symfony/config/properties.ini
>> tokens D:/pleiades3.5/Symfony/config/rsync_exclude.txt
>> tokens D:/pleiades3.5/Symfony/.../ProjectConfiguration.class.php
>> tokens D:/pleiades3.5/Symfony/config/properties.ini
>> tokens D:/pleiades3.5/Symfony/config/rsync_exclude.txt
>> tokens D:/pleiades3.5/Symfony/lib/form/BaseForm.class.php
>> file+ D:\pleiades3.5\Symfony\config/databases.yml
>> file+ D:\pleiades3.5\Symfony\config/propel.ini
>> file+ D:\pleiades3.5\Symfony\config/schema.yml
>> chmod 777 D:\pleiades3.5\Symfony\web\uploads
>> chmod 777 D:\pleiades3.5\Symfony\cache
>> chmod 777 D:\pleiades3.5\Symfony\log
>> chmod 777 D:\pleiades3.5\Symfony/symfony
>> chmod 777 D:/pleiades3.5/Symfony/web/uploads/assets
>> tokens D:/pleiades3.5/Symfony/config/databases.yml
>> tokens D:/pleiades3.5/Symfony/.../ProjectConfiguration.class.php
>> tokens D:/pleiades3.5/Symfony/config/propel.ini
>> tokens D:/pleiades3.5/Symfony/config/properties.ini
>> tokens D:/pleiades3.5/Symfony/config/rsync_exclude.txt
>> tokens D:/pleiades3.5/Symfony/config/schema.yml
>> tokens D:/pleiades3.5/Symfony/lib/form/BaseForm.class.php
D:\pleiades3.5\Symfony>copy lib\vendor\symfony\data\bin\symfony.bat .
1 個のファイルをコピーしました。
D:\pleiades3.5\Symfony>dir
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は XXXX-XXXX です
D:\pleiades3.5\Symfony のディレクトリ
2011/04/09 11:30 <DIR> .
2011/04/09 11:30 <DIR> ..
2011/04/09 11:30 <DIR> apps
2011/04/09 11:30 <DIR> cache
2011/04/09 11:30 <DIR> config
2011/04/09 11:30 <DIR> data
2011/04/09 11:30 <DIR> lib
2011/04/09 11:30 <DIR> log
2011/04/09 11:30 <DIR> plugins
2011/04/09 11:30 446 symfony
2011/04/28 09:05 1,151 symfony.bat
2011/04/09 11:30 <DIR> test
2011/04/09 11:30 <DIR> web
2 個のファイル 1,597 バイト
11 個のディレクトリ 277,016,522,752 バイトの空き領域
アプリケーション(admin2)を作成してみる。
D:\pleiades3.5\Symfony>symfony.bat generate:app admin2
>> dir+ D:\pleiades3.5\Symfony\apps/admin2\config
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/app.yml
>> file+ D:\pleiades3.5\Symfony\...licationConfiguration.class.php
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/cache.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/factories.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/filters.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/routing.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/security.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/settings.yml
>> file+ D:\pleiades3.5\Symfony\apps/admin2\config/view.yml
>> dir+ D:\pleiades3.5\Symfony\apps/admin2\i18n
>> dir+ D:\pleiades3.5\Symfony\apps/admin2\lib
>> file+ D:\pleiades3.5\Symfony\apps/admin2\lib/myUser.class.php
>> dir+ D:\pleiades3.5\Symfony\apps/admin2\modules
>> dir+ D:\pleiades3.5\Symfony\apps/admin2\templates
>> file+ D:\pleiades3.5\Symfony\apps/admin2\templates/layout.php
>> tokens D:/pleiades3.5/Symfony/apps/admin2/config/settings.yml
>> file+ D:\pleiades3.5\Symfony\web/index.php
>> file+ D:\pleiades3.5\Symfony\web/admin2_dev.php
>> tokens D:\pleiades3.5\Symfony\web/index.php
>> tokens D:\pleiades3.5\Symfony\web/admin2_dev.php
>> rename D:\pleiades3.5\Symfony\...g/admin2Configuration.class.php
>> tokens D:\pleiades3.5\Symfony\...g/admin2Configuration.class.php
>> chmod 777 D:\pleiades3.5\Symfony\web\uploads
>> chmod 777 D:\pleiades3.5\Symfony\cache
>> chmod 777 D:\pleiades3.5\Symfony\log
>> chmod 777 D:\pleiades3.5\Symfony/symfony
>> chmod 777 D:/pleiades3.5/Symfony/web/uploads/assets
>> dir+ D:\pleiades3.5\Symfony\test/functional/admin2
D:\pleiades3.5\Symfony>dir
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は XXXX-XXXX です
D:\pleiades3.5\Symfony のディレクトリ
2011/04/09 11:30 <DIR> .
2011/04/09 11:30 <DIR> ..
2011/04/09 11:32 <DIR> apps
2011/04/09 11:30 <DIR> cache
2011/04/09 11:30 <DIR> config
2011/04/09 11:30 <DIR> data
2011/04/09 11:30 <DIR> lib
2011/04/09 11:30 <DIR> log
2011/04/09 11:30 <DIR> plugins
2011/04/09 11:30 446 symfony
2011/04/28 09:05 1,151 symfony.bat
2011/04/09 11:30 <DIR> test
2011/04/09 11:32 <DIR> web
2 個のファイル 1,597 バイト
11 個のディレクトリ 277,016,506,368 バイトの空き領域
D:\pleiades3.5\Symfony>dir apps
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は XXXX-XXXX です
D:\pleiades3.5\Symfony\apps のディレクトリ
2011/04/09 11:32 <DIR> .
2011/04/09 11:32 <DIR> ..
2011/04/09 11:32 <DIR> admin2
0 個のファイル 0 バイト
3 個のディレクトリ 277,016,506,368 バイトの空き領域
D:\pleiades3.5\Symfony>dir web
ドライブ D のボリューム ラベルは ボリューム です
ボリューム シリアル番号は XXXX-XXXX です
D:\pleiades3.5\Symfony\web のディレクトリ
2011/04/09 11:32 <DIR> .
2011/04/09 11:32 <DIR> ..
2011/04/09 11:30 595 .htaccess
2011/04/09 11:32 599 admin2_dev.php
2011/04/09 11:30 <DIR> css
2011/04/09 11:30 <DIR> images
2011/04/09 11:32 234 index.php
2011/04/09 11:30 <DIR> js
2011/04/09 11:30 26 robots.txt
2011/04/09 11:30 <DIR> uploads
4 個のファイル 1,454 バイト
6 個のディレクトリ 277,016,506,368 バイトの空き領域
D:\pleiades3.5\Symfony>
アプリケーションの作成はpropelは関係ないようだ。
PR
Comment


