public function isPrimaryKey($field) { $parts = explode('.', $field); return array_pop($parts) === 'id'; }