This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Demo\Persistence\Doctrine; | |
use Doctrine\DBAL\DBALException; | |
use Doctrine\ORM\Configuration; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Query; | |
use Gedmo\Translatable\Query\TreeWalker\TranslationWalker; | |
use Gedmo\Translatable\TranslatableListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Demo\Hooks; | |
use Extcode\Cart\Domain\Model\Order\BillingAddress; | |
use TYPO3\CMS\Core\Context\Context; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Domain\Model\FrontendUser; | |
use TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository; | |
use TYPO3\CMS\Extbase\Object\ObjectManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function buildCommand($targetPath, $command, array $arguments = []) | |
{ | |
$phpBinaryPathAndFilename = isset($this->options['phpBinaryPathAndFilename']) ? ' ' . $this->options['phpBinaryPathAndFilename'] : ''; | |
return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext() | |
. $phpBinaryPathAndFilename . ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' ' | |
. implode(' ', array_map('escapeshellarg', $arguments)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88a89 | |
> | |
91c92,104 | |
< $checked = in_array($valueAttribute, $propertyValue); | |
--- | |
> foreach ($propertyValue as $value) { | |
> if (is_object($value)) { | |
> $identifier = $this->persistenceManager->getIdentifierByObject($value); | |
> if ($identifier !== NULL) { | |
> $value = $identifier; |