ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter::splitPropertyParts PHP Method

splitPropertyParts() protected method

Returns an array with the following keys: - associations: array of associations according to nesting order - field: string holding the actual field (leaf node)
protected splitPropertyParts ( string $property ) : array
$property string
return array
    protected function splitPropertyParts(string $property) : array
    {
        $parts = explode('.', $property);
        return ['associations' => array_slice($parts, 0, -1), 'field' => end($parts)];
    }