-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.power
More file actions
59 lines (53 loc) · 1.14 KB
/
code.power
File metadata and controls
59 lines (53 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* The main import target name.
*
* @var string
* @since 5.0.2
*/
protected string $targetName = 'item';
/**
* The default command name.
*
* @var string
* @since 5.0.2
*/
protected static $defaultName = '[[[component]]]:item:import';
/**
* The target import class.
*
* @var string
* @since 5.0.2
*/
protected string $targetImportClass = 'Import.Persistent';
/**
* The target items class.
*
* @var string
* @since 5.1.4
*/
protected string $targetItemsClass = 'Data.Items';
/**
* The target entity class.
*
* @var string
* @since 5.1.4
*/
protected string $targetEntityClass = 'Import.Persistent.Entity';
/**
* Configure the command.
*
* @return void
*
* @since 2.0.0
*/
protected function configure(): void
{
parent::configure();
// CHANGE THIS TO TARGET YOUR VIEW BEING IMPORTED!
// CHECK THE ENTITY CLASS FOR MORE OPTIONS
$this->entity->setParentTable('look')
->setParentKey('guid')->setParentJoinKey('entity')
->setLinkField('guid')->setJoinFields([
'detail' => ['link_fields' => ['entity']]
]);
}