iDigBio / Biospex

GNU General Public License v3.0
7 stars 1 forks source link

Change how actors are retrieved from database #274

Closed rbruhn closed 2 weeks ago

rbruhn commented 3 weeks ago

When retrieving actors (Zooniverse and GeoLocate) from the database with an Expedition, a collection is retrieved or haev to use a custom method to retrieve a particular actor: $expedition->zooniverseActor where zooniverseActor cannot be loaded lazily.

Create methods in the model to make calling a single actor easier by using actor_exxpedition as Pivot mode class.

rbruhn commented 2 weeks ago

Fixed with latest master-refactor push