Download the PHP package aura/sqlmapper-bundle without Composer
On this page you can find all versions of the php package aura/sqlmapper-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of sqlmapper-bundle with dependencies
Informations about the package sqlmapper-bundle
This package is DEPRECATED and will not be released in a stable version. Please consider using Atlas instead.
This bundle is installable and autoloadable via Composer as aura/sqlmapper-bundle.
Entity and Factory
Note: the Mapper
insertmethod assumes the primay column returned by
getPrimaryColis autogenerated by the database unless your concrete implementation of AbstractMapper overrides the
isAutoPrimarymethod and returns a boolean false method. You will need to create to implement
isAutoPrimaryif you want to insert rows which contain values for the primary column.
Update only changes
Object and Collection Factory
By default the mapper returns standard class objects. You can change this behaviour when creating the mapper, by extending ObjectFactory or by implmenting ObjectFactoryInterface.
Override identity field
By default, mapper assumes a public property as the identity field (or one that appears public via the magic __set() method). If the individual object uses a different property name, or uses a method instead, override
setIdentityValue method to provide setter functionality.
Filters can be used to alter the values during insert and update operations. Filter provides two methods which can be overridden,
$subject may be passed as either an object or an array, so your code should be prepared to handle both.