SlideShare a Scribd company logo
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

More Related Content

Similar to Symfony ORM (20)

PDF
The Case for using MongoDB in Social Game - Animal Land
Masakazu Matsushita
 
PPT
Zenyan Visualized
Eric Matthews
 
PDF
symfony on action - WebTech 207
patter
 
KEY
Mark ramm To relate or not to relate
StarTech Conference
 
KEY
PHP Development With MongoDB
Fitz Agard
 
KEY
PHP Development with MongoDB (Fitz Agard)
MongoSF
 
PPTX
Propel: A Open Source ORM Model and MVC Framework
Sachinkumar Durge
 
PDF
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
 
PDF
Introduction to NoSQL and Couchbase
Dipti Borkar
 
PDF
Doctrator Symfony Live 2011 Paris
pablodip
 
PDF
Transition from relational to NoSQL Philly DAMA Day
Dipti Borkar
 
PDF
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Dipti Borkar
 
PDF
Using Mongomapper to store dynamic data
wonko
 
PDF
Cake php 1.2-cheatsheet
PrinceGuru MS
 
PDF
Charla EHU Noviembre 2014 - Desarrollo Web
Mikel Torres Ugarte
 
PDF
Hong Qiangning in QConBeijing
shen liu
 
PDF
豆瓣技术架构的发展历程
George Ang
 
PDF
豆瓣 Qcon2009 Beijing
yiditushe
 
PDF
豆瓣技术架构的发展历程 @ QCon Beijing 2009
Qiangning Hong
 
PDF
mongodb-introduction
Tse-Ching Ho
 
The Case for using MongoDB in Social Game - Animal Land
Masakazu Matsushita
 
Zenyan Visualized
Eric Matthews
 
symfony on action - WebTech 207
patter
 
Mark ramm To relate or not to relate
StarTech Conference
 
PHP Development With MongoDB
Fitz Agard
 
PHP Development with MongoDB (Fitz Agard)
MongoSF
 
Propel: A Open Source ORM Model and MVC Framework
Sachinkumar Durge
 
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
 
Introduction to NoSQL and Couchbase
Dipti Borkar
 
Doctrator Symfony Live 2011 Paris
pablodip
 
Transition from relational to NoSQL Philly DAMA Day
Dipti Borkar
 
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Dipti Borkar
 
Using Mongomapper to store dynamic data
wonko
 
Cake php 1.2-cheatsheet
PrinceGuru MS
 
Charla EHU Noviembre 2014 - Desarrollo Web
Mikel Torres Ugarte
 
Hong Qiangning in QConBeijing
shen liu
 
豆瓣技术架构的发展历程
George Ang
 
豆瓣 Qcon2009 Beijing
yiditushe
 
豆瓣技术架构的发展历程 @ QCon Beijing 2009
Qiangning Hong
 
mongodb-introduction
Tse-Ching Ho
 

Recently uploaded (20)

PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Français Patch Tuesday - Juillet
Ivanti
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
July Patch Tuesday
Ivanti
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Ad

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