Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Jan 6, 2021
1 parent 2112692 commit 5b91b03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Kaliop\eZMigrationBundle\API\EnumerableMatcherInterface;
use Kaliop\eZMigrationBundle\API\Event\MigrationGeneratedEvent;

/**
* @todo allow passing in more context options, esp. for content/generate migrations
*/
class GenerateCommand extends AbstractCommand
{
const DIR_CREATE_PERMISSIONS = 0755;
Expand Down
9 changes: 7 additions & 2 deletions Core/Executor/ContentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,14 @@ protected function getReferencesValues($content, array $references, $step)
* @throws \Exception
* @return array
*
* @todo add support for dumping all object languages
* @todo add 2ndary locations when in 'update' mode
* @todo add dumping of sort_field and sort_order for 2ndary locations
* @todo allow context options to tweak the generated migrations eg:
* - omit rids on create
* - omit 2ndary locations on create
* - viceversa, do a full creation of 2ndary locations on create (incl. visibility, priority)
* - match by rid vs match by id on update and on delete
* - etc...
*/
public function generateMigration(array $matchCondition, $mode, array $context = array())
{
Expand Down Expand Up @@ -541,7 +546,7 @@ public function generateMigration(array $matchCondition, $mode, array $context =
)
);
$locationService = $this->repository->getLocationService();
/// @todo for accurate replication, we should express the addinfg of 2ndary locatins as separate steps, and copy over visibility, priority etc
/// @todo for accurate replication, we should express the adding of 2ndary locations as separate steps, and copy over visibility, priority etc
$locations = $locationService->loadLocations($content->contentInfo);
if (count($locations) > 1) {
$otherParentLocations = array();
Expand Down

0 comments on commit 5b91b03

Please sign in to comment.