<?php
namespace TYPO3\Flow\Tests\Functional\Persistence\Fixtures;

/*
 * This file is part of the TYPO3.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Doctrine\ORM\Mapping as ORM;
use TYPO3\Flow\Annotations as Flow;

/**
 * A simple embedded value object for persistence tests
 *
 * @Flow\ValueObject(embedded=true)
 */
class TestEmbeddedValueObject
{

    /**
     * @var string
     */
    protected $value;

    /**
     * @param string $value The string value of this value object
     */
    public function __construct($value = '')
    {
        $this->value = $value;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }
}

<?php
namespace TYPO3\Flow\Tests\Functional\Persistence\Fixtures;

/*
 * This file is part of the TYPO3.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

use Doctrine\ORM\Mapping as ORM;
use TYPO3\Flow\Annotations as Flow;

/**
 * A simple embedded value object for persistence tests
 *
 * @Flow\ValueObject(embedded=true)
 */
class TestEmbeddedValueObject
{

    /**
     * @var string
     * @ORM\Column(nullable=true)
     */
    protected $value;

    /**
     * @param string $value The string value of this value object
     */
    public function __construct($value = '')
    {
        $this->value = $value;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }
}

Work around when cloning proxied entities with embeddables
TASK: Work around when cloning proxied entities with embeddables
