/** * Create a back reference * * @param $key * * @return $this * * @since 1.0.0 */ public function via($key) { if ($this->parent instanceof DatabaseTable) { $this->db->schema()->setReference($this->parent->getTable(), $this->table, $key); } return $this; }
/** * Return column info. * * @param string field optional field name * @return array */ public function schema($field = null) { return parent::schema($this->tableName, $field); }