定制 jord-jd/uxdm-doctrine 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jord-jd/uxdm-doctrine

最新稳定版本:v2.0.0

Composer 安装命令:

composer require jord-jd/uxdm-doctrine

包简介

Doctrine package for the UXDM data migrator

README 文档

README

Build Status Coverage Status

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.

$doctrineDestination = new DoctrineDestination($entityManager, User::class);

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.

$migrator = new Migrator;
$migrator->setDestination($doctrineDestination);

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.

$migrator = new Migrator;
$migrator->addDestination($doctrineDestination, ['field1', 'field2']);
$migrator->addDestination($otherDestination, ['field3', 'field2']);

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2026-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固