Joomla 4 namespacing and autoloading

I’ve added the namespace line to my manifest xml: <namespace>Mycompany\Component\Mycomponent</namespace> When I install the component, I’m not seeing any alias added to the libraries/vendor/composer/autoload_psr4.php — should Joomla regenerate that file with each component installed? Is there any other places (besides just the namespaces in the classes themselved) that I need to register my namespace?

How to programmatically write Joomla article customs field values?

I added some custom fields to the articles of my Joomla website: I work on a custom Joomla module that creates new articles programmatically using the below code: static function createArticle(GNGLocation $loc, GNGLang $lang, $title, $alias, $intro, $summary, $imageStr) { $table = JTable::getInstance(‘Content’, ‘JTable’, array()); $jcat = $loc->get(‘jcat_id_tour’); $jlang = $lang->get(‘joomlaName’); $data = array( ‘catid’…