Onsite training

Bring our trainers team onsite to train your employees.

Learn more


Doctrine

NoSQL with MongoDB and Doctrine 2

Work with MongoDB NoSQL databases thanks to PHP and the Doctrine2 ODM component.


This training will help you to interact and manage MongoDB NOSQL databases thanks to PHP and the Doctrine 2 abstraction layer library.

Coming sessions


No session is currently scheduled.

Goals


During three days, you will learn how to leverage the power of MongoDB databases thanks to PHP and Doctrine 2.


Program

Download the program as PDF

Introduction to MongoDB

  • Discovering the NoSQL movement
  • Installing MongoDB on Windows, Mac OS X and Linux
  • Introduction to MongoDB supported features
  • Creating a basic MongoDB database
  • Inserting, updating, deleting and searching data from MongoDB

Managing a MongoDB database from a PHP high-level API

  • Discovering the PHP Mongo API
  • Connecting to a MongoDB database
  • Defining collections in the database
  • Inserting documents in a collection
  • Finding documents from a collection
  • Updating documents in a collection
  • Deleting documents from a collection
  • Executing queries on a MongoDB database
  • Limiting a document result set with criterias

Introduction to Doctrine 2 ODM

  • Discovering the Doctrine2 ODM library
  • Installing Doctrine2 (Git and PEAR)
  • Discovering database abstraction principles
  • Opening a connection on a MongoDB database
  • Introduction to the class vs collection mapping principle

Defining a data model for MongoDB documents with Doctrine 2

  • Creating PHP annoted classes with DocBlock comments
  • Defining a MongoDB document primary key
  • Constrainting MongoDB document attributes
  • Defining relations between document model classes
  • Defining embedded relations between document model classes
  • Defining indexes on specific MongoDB document properties

Managing document model objects with Doctrine 2

  • Serializing and persisting PHP objects to MongoDB
  • Deleting a document from a collection
  • Detaching a MongoDB document
  • Merging MongoDB documents
  • Establishing references between documents
  • Deleting references that link documents with each other

Querying a MongoDB database with Doctrine 2

  • Finding a document with its primary key
  • Finding documents according to a criteria
  • Creating and querying a MongoDB documents repository
  • Creating, initializing and executing custom MongoDB queries
  • Sorting a result set according to a criteria
  • Limiting the number of documents in a result set
  • Applying arithmetics operations on a result set
  • Realizing atomic updates and deletions

Storing binary files in a MongoDB database with MongoGridFS

  • Discovering the MongoGridFS API
  • Defining MongoDB storage classes for files to save
  • Inserting a file contents in a MongoDB document object
  • Finding a file with its primary key or criteria

Session details


Reference code

DOC2C2

Price

Starts at €1,490.00 (ex. tax)

Audience

PHP developers

Duration

3 days (21 hours)

Training type

Workshop

Topics

NoSQL, MongoDB, Doctrine 2

Pre-requisites

Mastering PHP 5.3 & Object Oriented Programming


For further information

We remain at your disposal for further information.

Contact us