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

Automatically detect class from has_one #3

Open
nathancox opened this issue Jun 11, 2017 · 1 comment
Open

Automatically detect class from has_one #3

nathancox opened this issue Jun 11, 2017 · 1 comment

Comments

@nathancox
Copy link
Owner

If no $sourceObject is supplied, detect the class using the relationship.

Maybe also detect $labelField by picking the first of the source object's $display_fields?

@elkebe
Copy link

elkebe commented Apr 2, 2021

(SS4) would also be good if $sourceObject could accept filtered object eg. Product::get()->filter('Title','something') instead of just Product::class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants