public static function loadVersions($repository_phid) { $version = new self(); $conn_w = $version->establishConnection('w'); $table = $version->getTableName(); // This is a normal read, but force it to come from the master. $rows = queryfx_all($conn_w, 'SELECT * FROM %T WHERE repositoryPHID = %s', $table, $repository_phid); return $version->loadAllFromArray($rows); }