My INSURER PTE LTD - Insurtech Innovation Award 2024
Symfony ORM
1. symfony ORM
CREOLE PROPEL
use Object/Relational
Database Abstraction
Mapping (ORM)
use
DATABASE SYMFONY FRAMEWORK
SYMFONY CLI MODEL CLASSES
myproject/config
blog_article blog_comment (only database commands)
/lib/model files used to add
id id
generate $ symfony propel-build-sql Article.php custom methods
title article_id (FK) ArticlePeer.php and properties to
content author
use Comment.php the model objects
created_at content $ symfony propel-insert-sql CommentPeer.php
created_at
/lib/model/om base classes,
e generate
rib $ symfony propel-build-schema xml BaseArticle.php modified by
d esc BaseArticlePeer.php propel build
PostgreSQL schema.yml schema.xml
information BaseComment.php model
Oracle use $ symfony propel-build-model generate BaseCommentPeer.php
MySQL
SQL Server
same
/lib/model/map metadata
SQLite DB $ symfony propel-generate-crud ArticleMapBuilder.php information
CommentMapBuilder.php about the table
$ symfony propel-build-db
description of the
relational model to use
do the mapping
use
myproject/config
or
apps/myapp/config
propel.ini
DB connection database.yml
settings and DB connection
propel configuration settings to
access the
data model
http://andreiabohner.wordpress.com