Skip to content

Fixed order of inserting to multidatabase entity - #79

Open
Hlavos wants to merge 1 commit into
obophp:masterfrom
Hlavos:fixInsertToMultiDatabaseEntity
Open

Fixed order of inserting to multidatabase entity#79
Hlavos wants to merge 1 commit into
obophp:masterfrom
Hlavos:fixInsertToMultiDatabaseEntity

Conversation

@Hlavos

@Hlavos Hlavos commented Jun 7, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@Hlavos Hlavos changed the title Fix inser to multi dateabase entity Fixed order of insertig to multidatabase entity Jun 7, 2018
Comment thread tests/MySQLTest.phpt Outdated
);
}


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double newine

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread tests/MySQLTest.phpt Outdated
);
}


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double newline

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Hlavos Hlavos changed the title Fixed order of insertig to multidatabase entity Fixed order of inserting to multidatabase entity Jun 7, 2018
@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch from 219a8e2 to 45df258 Compare June 7, 2018 06:20
Comment thread tests/MySQLTest.phpt Outdated
$selectedEntity = $this->selectEntity(static::BUSINESS_CONTACTS_REPOSITORY, $entity->primaryPropertyValue());
Assert::true($selectedEntity !== FALSE, "Contact entity with ID " . $entity->primaryPropertyValue() . "should be inserted in database");


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

many empty lines

Comment thread tests/MySQLTest.phpt Outdated
protected function createBusinessContactEntity($save = true) {
$entity = Assets\Entities\Contact\BusinessManager::entityFromArray(static::$businessContactData);

if ($save) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to single line :-)

@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch 2 times, most recently from c46df5e to b0ead98 Compare June 18, 2018 11:08
@Hlavos

Hlavos commented Jun 18, 2018

Copy link
Copy Markdown
Contributor Author

edited

@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch from b0ead98 to a180b6c Compare June 18, 2018 11:11
Comment thread src/MySQL.php Outdated
}

$convertedData = [];
$propertyRepositoryNameOfPrimaryProperty = $entityInformation->informationForPropertyWithName($entityInformation->primaryPropertyName)->repositoryName ?: $entityInformation->repositoryName;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better(in naming convention) name for variable would be "PrimaryPropertyRepositoryName" and "PrimaryPropertyStorageName" below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch from a180b6c to c126483 Compare June 28, 2018 05:32
@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch from c126483 to f468b1c Compare June 28, 2018 06:46
@Hlavos
Hlavos force-pushed the fixInsertToMultiDatabaseEntity branch from f468b1c to d13d443 Compare June 28, 2018 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants