Add block error: Call to a member function getColumns() on null

Permalink
Hi,
Im trying to make a block where you can save a custom slider however when I try to save I get this error:
Call to a member function getColumns() on null


I've been tearing my hair out for a few days now as I can't figure it out any ideas? Here is my db.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<schema
        xmlns="http://www.concrete5.org/doctrine-xml/0.5"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.concrete5.org/doctrine-xml/0.5http://concrete5.github.io/doctrine-xml/doctrine-xml-0.5.xsd"&...
    <table name="btCoverSlider">
        <field name="bID" type="integer">
            <unsigned />
        </field>
        <field name="default_wallpaper" type="integer">
            <default value="0" />
        </field>
        <field name="for_sale_page_id" type="integer">
            <default value="0" />
        </field>

 
mnakalay replied on at Permalink Reply
mnakalay
I am not sure that will solve the problem but in your first table, your bID should also be a primary key. So you should modify it to be like so
<field name="bID" type="integer">
    <unsigned />
    <key />
</field>