Upload
nuuktal-consulting
View
1.102
Download
0
Embed Size (px)
Citation preview
DB
$ symfony propel-build-schema xml
MODEL CLASSES
/lib/model/om
/lib/model
/lib/model/map
Object/RelationalMapping (ORM)use
use
SYMFONY CLI
$ symfony propel-build-model generate
myproject/config
describe
use
Database Abstraction
metadata information about the table
base classes,modified by propel build model
files used to addcustom methodsand properties tothe model objectsblog_article blog_commentidtitlecontentcreated_at article_id (FK)authorcontentcreated_at
idDATABASE SYMFONY FRAMEWORK
myproject/configorapps/myapp/config
PROPELCREOLE
$ symfony propel-generate-crud
$ symfony propel-build-sql
$ symfony propel-build-db
$ symfony propel-insert-sql(only database commands)
same information
generate useBaseArticle.phpBaseArticlePeer.phpBaseComment.phpBaseCommentPeer.php
Article.phpArticlePeer.phpComment.phpCommentPeer.php
usegenerate
propel.ini
schema.yml schema.xml
database.yml
use
ArticleMapBuilder.phpCommentMapBuilder.php
PostgreSQLOracleMySQLSQL ServerSQLitedescription of the relational model to do the mapping
DB connectionsettings andpropel configuration DB connectionsettings to access the data model
symfony ORM
http://andreiabohner.wordpress.com