forked from flourishlib/flourish-classes
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
In 954c7b2 the ability was added to associateRelatedRecord in a many-to-one relationship such that you could do something like:
$bookmark->associateUser($user);
$bookmark->createUser();
And the result of createUser() would be the associated record. However, since the associate functionality also attempts to flag records to be updated in the DB and this is more complex logic, a deicsion was made not to have the associate handled when $bookmark->store() is called, so it is flagged not to update.
It would be nice if that logic could be added so that a separate call to $bookmark->setUser($user->getId()) need not be called to actually ensure the association is stored.
Metadata
Metadata
Assignees
Labels
No labels