There is no need to load UrlAlias and from it Location to get ContentInfo.
ContentInfo is already available in newly created `$contentArticle`, so you can just write:

```php
$sectionService->assignSection( $contentArticle->contentInfo, $section );
```