3 change some text
source | link

I need to create a new module to table exists with another prefix of mam

I need to create a new module and this proyectproject have tables with other prefixprefixes, How I ommitomit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{

    /**
     * Construct
     *
     * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
     * @param string|null $resourcePrefix
     */
    public function __construct(
        \Magento\Framework\Model\ResourceModel\Db\Context $context,
        $resourcePrefix = null
    ) {
        parent::__construct($context, $resourcePrefix);     
    }

    /**
     * Model Initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('app_places_zones', 'id');
    }
}

I need create a new module to table exists with another prefix of mam

I need create a new module and this proyect have tables with other prefix, How I ommit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{

    /**
     * Construct
     *
     * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
     * @param string|null $resourcePrefix
     */
    public function __construct(
        \Magento\Framework\Model\ResourceModel\Db\Context $context,
        $resourcePrefix = null
    ) {
        parent::__construct($context, $resourcePrefix);     
    }

    /**
     * Model Initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('app_places_zones', 'id');
    }
}

I need to create a new module to table exists with another prefix of mam

I need to create a new module and this project have tables with other prefixes, How I omit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{

    /**
     * Construct
     *
     * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
     * @param string|null $resourcePrefix
     */
    public function __construct(
        \Magento\Framework\Model\ResourceModel\Db\Context $context,
        $resourcePrefix = null
    ) {
        parent::__construct($context, $resourcePrefix);     
    }

    /**
     * Model Initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('app_places_zones', 'id');
    }
}
2 added 106 characters in body
source | link

I need create a new module and this proyect have tables with other prefix, How I ommit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {


class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{

    /**
     * Construct
     *
     * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
     * @param string|null $resourcePrefix
     */
    public function __construct(
        \Magento\Framework\Model\ResourceModel\Db\Context $context,
        $resourcePrefix = null
    ) {
        parent::__construct($context, $resourcePrefix);     
    }

    /**
     * Model Initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('app_places_zones', 'id');
    }
}

}

I need create a new module and this proyect have tables with other prefix, How I ommit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {

/**
 * Construct
 *
 * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
 * @param string|null $resourcePrefix
 */
public function __construct(
    \Magento\Framework\Model\ResourceModel\Db\Context $context,
    $resourcePrefix = null
) {
    parent::__construct($context, $resourcePrefix);     
}

/**
 * Model Initialization
 *
 * @return void
 */
protected function _construct()
{
    $this->_init('app_places_zones', 'id');
}

}

I need create a new module and this proyect have tables with other prefix, How I ommit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{

    /**
     * Construct
     *
     * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
     * @param string|null $resourcePrefix
     */
    public function __construct(
        \Magento\Framework\Model\ResourceModel\Db\Context $context,
        $resourcePrefix = null
    ) {
        parent::__construct($context, $resourcePrefix);     
    }

    /**
     * Model Initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('app_places_zones', 'id');
    }
}
1
source | link

I need create a new module to table exists with another prefix of mam

I need create a new module and this proyect have tables with other prefix, How I ommit this default prefix in my file /Model/ModelTable.php

this is the code inside:

namespace Arkix\Zonas\Model\Resource;

class Zona extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {

/**
 * Construct
 *
 * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
 * @param string|null $resourcePrefix
 */
public function __construct(
    \Magento\Framework\Model\ResourceModel\Db\Context $context,
    $resourcePrefix = null
) {
    parent::__construct($context, $resourcePrefix);     
}

/**
 * Model Initialization
 *
 * @return void
 */
protected function _construct()
{
    $this->_init('app_places_zones', 'id');
}

}