2017 © Pedro Peláez
 

library mapper

A data mapper for the persistence model.

image

atlas/mapper

A data mapper for the persistence model.

  • Friday, July 13, 2018
  • by pmjones
  • Repository
  • 3 Watchers
  • 2 Stars
  • 174 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 96 % Grown

The README.md

Atlas.Mapper

A data mapper implementation for Atlas. Though it is primarily intended as the heart of Atlas.Orm, it may be used independently of that package., (*1)

Getting Started

First, you will need to create the prerequsite data-source classes using Atlas.Cli 2.x., (*2)

Once you have done so, create a MapperLocator using the static new() method and pass your PDO connection parameters:, (*3)

use Atlas\Table\MapperLocator;

$mapperLocator = MapperLocator::new('sqlite::memory:'')

You can then use the locator to retrieve a Mapper by its class name., (*4)

use Atlas\Testing\DataSource\Thread\ThreadMapper;

$threadMapper = $mapperLocator->get(ThreadMapper::CLASS)

From there you can fetch, insert, update, delete, and persist Record objects., (*5)

In the absence of full documentation, please review these Mapper methods instead:, (*6)

  • fetchRecord()
  • fetchRecordBy()
  • fetchRecords()
  • fetchRecordsBy()
  • fetchRecordSet()
  • fetchRecordSetBy()
  • select()
  • insert()
  • update()
  • delete()
  • persist()

The Versions

13/07 2018

1.x-dev

1.9999999.9999999.9999999-dev http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

13/07 2018

1.0.2

1.0.2.0 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

12/07 2018

1.0.1

1.0.1.0 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

07/07 2018

1.0.0

1.0.0.0 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

07/07 2018

dev-stash-for-discard-deleted

dev-stash-for-discard-deleted http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

03/06 2018

1.0.0-beta3

1.0.0.0-beta3 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

28/05 2018

1.0.0-beta2

1.0.0.0-beta2 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

25/05 2018

dev-rejoinwith

dev-rejoinwith http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

08/05 2018

1.0.0-beta1

1.0.0.0-beta1 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping

19/04 2018

1.0.0-alpha1

1.0.0.0-alpha1 http://github.com/atlasphp/Atlas.Mapper

A data mapper for the persistence model.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm sql mapper data mapping