Download the PHP package divineomega/uxdm-doctrine without Composer
On this page you can find all versions of the php package divineomega/uxdm-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/uxdm-doctrine
More information about divineomega/uxdm-doctrine
Files in divineomega/uxdm-doctrine
Package uxdm-doctrine
Short Description Doctrine package for the UXDM data migrator
License LGPL-3.0-only
Informations about the package uxdm-doctrine
UXDM Doctrine
The UXDM Doctrine package provides a UXDM destination for the Doctrine ORM, commonly used in Symfony projects.
Doctrine Destination
The UXDM Doctrine destination allows you to migrate data into an Doctrine entity. This can be handy if you need to migrate data into a system using the Doctrine ORM, such as a Symfony project.
Creating
To create a new Doctrine destination, you must provide it with your Doctrine ORM EntityManager instance, and the class name of the Doctrine entity you wish to use.
The following example creates a Doctrine destination object, using a Doctrine entity called User
. It is assumed that your $entityManager
has already been created elsewhere.
Assigning to migrator
To use the Doctrine destination as part of a UXDM migration, you must assign it to the migrator. This process is the same for most destinations.
Alternatively, you can add multiple destinations, as shown below. You can also specify the fields you wish to send to each destination by passing an array of field names as the second parameter.
All versions of uxdm-doctrine with dependencies
doctrine/orm Version ^2.5
symfony/property-access Version ^3.4