Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share

Doctrine 2.0

on

  • 4,472 views

 

Statistics

Views

Total Views
4,472
Views on SlideShare
4,017
Embed Views
455

Actions

Likes
8
Downloads
117
Comments
0

9 Embeds 455

http://www.symfony.es 397
http://www.berejeb.com 37
http://symfony.lab216.com 8
http://www.sfexception.com 5
http://symfony.es 4
http://www.netvibes.com 1
http://translate.googleusercontent.com 1
http://paper.li 1
http://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Doctrine 2.0 Presentation Transcript

  • 1. Doctrine 2
    JuozasKaziukėnas
    www.juokaz.com / juozas@juokaz.com / @juokaz
  • 2. JuozasKaziukėnas, Lithuanian
    You can call me Joe
    2 years in Edinburgh, UK
    Studying in University of Edinburgh
    Software developer, consultant and evangelist
    Open source developer for Zend Framework, Doctrine…
    More info in www.juokaz.com and twitter @juokaz
    Who am I?
  • 3. Doctrine users?
    Propel users? (you will be converted!)
    Interested in DB’s and PHP?
    Interested in PHP news?
    Who are you?
  • 4. Doctrine is ORM tool for PHP
    Inspired by Hibernate, ActiveRecord etc.
  • 5. Doctrine 1.X
  • 6. Slow
    High memory usage (cyclic references)
    Magic! (eg. Behaviors)
    Hard to execute raw SQL
    Still the best ORM for PHP available today
    Doctrine 1.X
  • 7. ActiveRecord
    Root of all problems!
  • 8. ActiveRecord
  • 9. Stable
    Works
    Makes development fast, clean and consistent
    Used in production
    Still the best ORM for PHP available today
  • 10. Doctrine 2
  • 11. Doctrine 2 is completely different
  • 12. Everything you can do in Doctrine 1 you can do in Doctrine 2, just in a different way.
  • 13. Rewritten from scratch (almost)
    PHP 5.3
    Decoupled components
    Simplified API
    “Complexified” internals?..
    Performance
    New hydartion
    Less magic
    Overall cleanup
    What’s new?
  • 14. Doctrine 2 Architecture:Based on JSR-317 a.k.a. JPA v2.0
  • 15. [Common, DBAL, ORM, ODM]
  • 16. Caching
    Events
    Annotations
    Class loaders
    … more
    Common
  • 17. Annotations
  • 18. Can be used without ORM
    Abstraction for MySQL, PgSQL, Oracle, Microsoft SQL, DB2 etc.
    PHP types mapping to DB types
    Extendable
    … more
    DBAL
  • 19. Connection
  • 20. Actual ORM component
    Uses Common and DBAL
    No more ActiveRecord
    Entities
    Metadata mapping
    Entity manager
    Query language
    Faster, cleaner, clever, extendable
    No forcing
    ORM
  • 21. Entity
  • 22. Querying
  • 23. ODM? Hell yeah NoSQL!!!
    MongoDB, CauchDB
  • 24. Abstracts NoSQL databases
    Similar Metadata configuration
    A lot of functionality from ORM also available in ODM
    Querying
    EntityManager -> DocumentManager
    ODM
  • 25. ODM Querying
  • 26. Much more!
  • 27. Doctrine 2 will be released soon
    Most of the functionality is there
    Used in production
    “The library” for PHP 5.3
    Symfony, Zend Framework etc.
    Finishing
  • 28. Questions?
  • 29. JuozasKaziukėnas
    www.juokaz.com
    juozas@juokaz.com
    twitter: @juokaz
    * Illustrations from http://images.google.com
    Thanks!!!