Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* An alias for BaseRepo::loadByKeys
protected static function loadByKeys(array $args, $byKeys = null)
if (static::SHARD_MAPPING_ID) {
return static::shards()->first(function(BaseRepo $repo, Shard $shard) use ($arg, $byKeys) {
return $repo->loadByKeys($args, $byKeys);
return static::masterRepo()->loadByKeys($args, $byKeys);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.