DboSource::resolveKey PHP Method

resolveKey() public method

Returns a key formatted like a string Model.fieldname(i.e. Post.title, or Country.name)
public resolveKey ( Model $Model, string $key, string $assoc = null ) : string
$Model Model The model to get a key for.
$key string The key field.
$assoc string The association name.
return string
    public function resolveKey(Model $Model, $key, $assoc = null)
    {
        if (strpos('.', $key) !== false) {
            return $this->name($Model->alias) . '.' . $this->name($key);
        }
        return $key;
    }
DboSource