I noticed that if I create an entity with a composite key, the loadByORMID method that is automatically generated contains a bug:
public static function loadUserByORMID($name, $company) {
$m = epManager :: instance();
$user = $m->create('User');
$user->name = $name;
$users = $m->find($user);
$userValues = array_values($users);
return $userValues[0];
$user->company = $company;
$users = $m->find($user);
$userValues = array_values($users);
return $userValues[0];
}
As you can see the function signature correctly contains both pieces of the composite key. However, the code generator in DBVA is trying to perform two separate searches, one for each half of the key when in fact it should be searching for both halves at the same time as in the following example which I coded by hand:
public static function loadUserByORMID($name, $company) {
$m = epManager :: instance();
$user = $m->create('User');
$user->name = $name;
$user->company = $company;
$users = $m->find($user);
$userValues = array_values($users);
return $userValues[0];
}
Any idea how long this might take to fix?