boshurik/mapper-bundle

Mapper bundle

Installs: 3 171

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.4.7 2024-01-22 14:00 UTC

This package is auto-updated.

Last update: 2024-03-22 14:21:01 UTC


README

Integrates boshurik/mapper to Symfony

Usage

composer require boshurik/mapper-bundle

Bundle introduce two interfaces BoShurik\MapperBundle\Mapper\Mapping\MappingInterface and BoShurik\MapperBundle\Mapper\Mapping\ReverseMappingInterface for one-way and two-way mappings respectively

Code generation

Code generation based on PHP-Parser

composer require nikic/php-parser

Generating model

bin/console mapper:generate:model

Generating mapping

bin/console mapper:generate:mapping