Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the mergeAssociated(array $data) function for? #190

Open
mrmt00 opened this issue Nov 3, 2022 · 1 comment
Open

What is the mergeAssociated(array $data) function for? #190

mrmt00 opened this issue Nov 3, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mrmt00
Copy link

mrmt00 commented Nov 3, 2022

/**
* @param array $data Data to merge
* @return $this
*/
public function mergeAssociated(array $data)
{
$this->getAssociationBuilder()->setAssociated(
array_merge(
$this->getAssociationBuilder()->getAssociated(),
$data
)
);
return $this;
}

@pabloelcolombiano
Copy link
Collaborator

There is no use of this function, it was put public in order to have it tested. But indeed we could put it in protected/private.

@pabloelcolombiano pabloelcolombiano self-assigned this Nov 8, 2022
@pabloelcolombiano pabloelcolombiano added the enhancement New feature or request label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants