Seções

Data Mapper


These components have been heavily influenced by Aura PHP and Atlas PHP

Visão Geral

The Data Mapper pattern as described by Martin Fowler in Patterns of Enterprise Application Architecture is:

A layer of Mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself.

The Phalcon\DataMapper namespace contains components to help with accessing your data source, with the [Data Mapper][pattern].

PDO

Connection

One of the components required by this implementation is a PDO connector. The Phalcon\DataMapper\Pdo\Connection offers a wrapper to PHP’s PDO implementation, making it easier to maintain connections.

Connecting to a source

Connection - Decorated

ConnectionLocator

Profiler

Query

Factory

Delete

Insert

Select

Update