Skip to content

Commit

Permalink
Upgrading RainLab.User, docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Feb 14, 2024
1 parent 99bbedd commit e61f195
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helpers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/**
* Auth
*
* @see \Responsiv\User\Classes\AuthManager
* @see \RainLab\User\Classes\AuthManager
*/
class Auth extends October\Rain\Support\Facades\Auth {}
4 changes: 3 additions & 1 deletion src/Database/Concerns/HasEagerLoadAttachRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
use Closure;

/**
* HasNicerPagination for a query builder
* HasEagerLoadAttachRelation eagerly loads all attachments on a model in one pass.
* Since they share a common type and database table, multiple attachment definitions
* can be eagerly loaded as a single query.
*/
trait HasEagerLoadAttachRelation
{
Expand Down
4 changes: 2 additions & 2 deletions src/Database/Replicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ protected function isRelationReplicable(string $name): bool
* mapAssociation is an internal method that keeps a record of what records were created
* and their associated source, the following format is used:
*
* [\Model\Class][1] => [FromModel, ToModel]
* [FromModel::id] => [FromModel, ToModel]
*/
protected function mapAssociation($currentModel, $replicatedModel)
{
$this->associationMap[$currentModel->getKey()] = [$currentModel, $replicatedModel];
}

/**
* updateTreeAssociations
* updateTreeAssociations sets new parents on the replicated records
*/
protected function updateTreeAssociations()
{
Expand Down

0 comments on commit e61f195

Please sign in to comment.