/**
  * Class init.
  *
  * @param  Table    $parent    The parent table od this relation.
  * @param  string   $field     Field of parent table to store children.
  * @param  \JTable  $map       The mapping table.
  * @param  array    $mapFks    The mapping foreign keys.
  * @param  \JTable  $table     The Table object of this relation child.
  * @param  array    $fks       Foreign key mapping.
  * @param  string   $onUpdate  The action of ON UPDATE operation.
  * @param  string   $onDelete  The action of ON DELETE operation.
  * @param  array    $options   Some options to configure this relation.
  */
 public function __construct($parent, $field = null, $map = null, $mapFks = array(), $table = null, $fks = array(), $onUpdate = Action::NO_ACTION, $onDelete = Action::NO_ACTION, $options = array())
 {
     $this->mappingTable($map, $mapFks);
     parent::__construct($parent, $field, $table, $fks, $onUpdate, $onDelete, $options);
 }
 /**
  * Class init.
  *
  * @param Table   $parent    The parent table od this relation.
  * @param string  $field     Field of parent table to store children.
  * @param \JTable $table     The Table object of this relation child.
  * @param array   $fks       Foreign key mapping.
  * @param string  $onUpdate  The action of ON UPDATE operation.
  * @param string  $onDelete  The action of ON DELETE operation.
  * @param array   $options   Some options to configure this relation.
  */
 public function __construct($parent, $field = null, $table = null, $fks = array(), $onUpdate = Action::NO_ACTION, $onDelete = Action::NO_ACTION, $options = array())
 {
     $onUpdate = $onUpdate ?: Action::NO_ACTION;
     $onDelete = $onDelete ?: Action::NO_ACTION;
     parent::__construct($parent, $field, $table, $fks, $onUpdate, $onDelete, $options);
 }
 /**
  * Method to test getPrefix().
  *
  * @return void
  *
  * @covers Windwalker\Relation\Handler\AbstractRelationHandler::getPrefix
  * @covers Windwalker\Relation\Handler\AbstractRelationHandler::setPrefix
  */
 public function testGetAndSetPrefix()
 {
     $this->assertEquals('', $this->instance->getPrefix());
     $this->instance->setPrefix('JTable');
     $this->assertEquals('JTable', $this->instance->getPrefix());
 }