This commit is contained in:
James Cole 2016-04-18 14:15:10 +02:00
parent 3fa659632c
commit 2c6643d691
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface
// is mapped? Then it's easy! // is mapped? Then it's easy!
if (isset($this->mapped[$this->index][$this->value])) { if (isset($this->mapped[$this->index][$this->value])) {
$account = $repository->find($this->mapped[$this->index][$this->value]); $account = $repository->find(intval($this->mapped[$this->index][$this->value]));
Log::debug('Found mapped account for value "' . $this->value . '". It is account #' . $account->id); Log::debug('Found mapped account for value "' . $this->value . '". It is account #' . $account->id);
return $account; return $account;

View File

@ -25,7 +25,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface
// is mapped? Then it's easy! // is mapped? Then it's easy!
if (isset($this->mapped[$this->index][$this->value])) { if (isset($this->mapped[$this->index][$this->value])) {
$account = $repository->find($this->mapped[$this->index][$this->value]); $account = $repository->find(intval($this->mapped[$this->index][$this->value]));
return $account; return $account;
} }

View File

@ -34,7 +34,7 @@ class AssetAccountNumber extends BasicConverter implements ConverterInterface
// is mapped? Then it's easy! // is mapped? Then it's easy!
if (isset($this->mapped[$this->index][$this->value])) { if (isset($this->mapped[$this->index][$this->value])) {
$account = $repository->find($this->mapped[$this->index][$this->value]); $account = $repository->find(intval($this->mapped[$this->index][$this->value]));
return $account; return $account;
} }