Created
December 30, 2016 08:58
-
-
Save mooror/1fc52a7e16cd82fdc9300865544eb468 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$newItemVersion = StoreItemVersion::create(); | |
$newItemVersion->ParentItemID = $this->newItemId; | |
$newItemVersion->Name = $composerJsonArray['version']; | |
$newItemVersion->FileID = 255; | |
// $newItemVersion->FileID = $newFile; | |
$newItemVersion->ModeID = 4; | |
$newItemVersionId = $newItemVersion->write(); | |
//ModeID works fine but FileID dosn't. Instead I get a 0 for FileID in the database |
This file contains 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 | |
private static $db = array ( | |
'Name' => 'Varchar', | |
'FullName' => 'Varchar' | |
); | |
private static $has_one = array ( | |
'File' => 'File', | |
'Mode' => 'StoreItemMode', | |
'Status' => 'Status' | |
); | |
... Truncated ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment