Hi,
this question may have a simple solution, but unfortunately I was not able to solve it by looking at the source code of DBField.
I have a custom DBField, actually inherited from Text, so let's define it for example like this:
class CustomField extends Text
{
// ...
public function getValue()
{
//Some custom logic to retrieve the value
}
// ...
}
Is there any way for me to find out which DataObject owns this particular field? I would need this information in the getValue() method. Something like $this->owner like we are able to use in Extensions or something different?
Thanks! :)