Skip to content

Instantly share code, notes, and snippets.

View dantleech's full-sized avatar
💭
Nothing

dantleech dantleech

💭
Nothing
View GitHub Profile
notre_equipe:
type: select
multiple: true
autocomplete: true
sortable: true
values: equipe/prenom,nom
key: id
+----+------------+-------------+---------------+--------------+--------------+-----------+
| id | content_id | contenttype | taxonomytype | slug | name | sortorder |
+----+------------+-------------+---------------+--------------+--------------+-----------+
| 5 | 38 | regions | region_groups | regions_nord | Regions Nord | 0 |
+----+------------+-------------+---------------+--------------+--------------+-----------+
<?php
namespace DTL\Bolt\Extension\Fixtures\Tests\Functional;
use Silex\Application;
use DTL\Bolt\Extension\Fixtures\DtlBoltFixturesExtension;
class ApplicationTestCase extends \PHPUnit_Framework_TestCase
{
protected function getApplication()
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
<?php
/*
* This file is part of the PHPBench package
*
* (c) Daniel Leech <daniel@dantleech.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
{
"name": "sylius/sylius",
"type": "project",
"description": "E-Commerce platform for PHP, based on Symfony framework.",
"license": "MIT",
"homepage": "http://sylius.org",
"authors": [
{
"name": "Paweł Jędrzejewski",
"homepage": "http://pjedrzejewski.com"
<?php
/**
* @BeforeMethods({"setUp"})
*/
class FoobarTest extends \PHPUnit_FrameworkTestCase
{
public function setUp()
{
// do some setup

Synchronization Manager Next Steps

Problems:

Cold synchronization (push)

It is not possible to sync all documents using at once on an empty TDM - references will not be found and things will

Synchronization Cases

Terminology:

  • SDM: Source Document Manager (e.g. the default manager in Sulu).
  • TDM: Target Document Manager (e.g. the live document manager in Sulu).
  • synchronize: To copy the state of something to or from a TDM.
  • push: Synchronize from the SDM to a TDM.
  • pull: Synchronize to the SDM from a TDM.
<?php
$account = new Account();
$account->setName('Company');
$account->setPlaceOfJurisdiction('Feldkirch');
$this->em->persist($account);
$this->em->flush();
// echos "1"