Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

$db fields do not appear in the DashBoard


Go to End


3 Posts   1242 Views

Avatar
Ajaxian

Community Member, 8 Posts

27 November 2012 at 11:15pm

Edited: 27/11/2012 11:15pm

Hi,
I'm newcomer to SS, and I have seen a lot of doc, and have made working the tutorial about Students and Project.

I'm trying to achieve a very similar stuff than the tutorial one.
I have a CarManufacturer class
a CarManufacturerHolders which aims to contain all CarManufacturers
and a TypeCar class which aims to describe the kind of car (Audi has a A1 car type, but also A3 , .....)

meanwhile I add attributes to my CarManufacturer class, a name and a specific code....
And when I have a look on the DashBoard (Admin panel), when I try to add a CarManufacturer I do not have those attributes.
I have only the ones concerning a "page", i.e. Name Url Segment ...

I don't understand whether I do a mistake or whether I forgot something. I would expect having those fields in the admin Panel when I create this kind of Objects.

My example is a very trivial one, very similar to the tutorial one except that in the tutorial the Project class (extends Page) doesn't have $db specific attributes

Hope Am I clear enough...

thanks in advance for your hints.

Avatar
copernican

Community Member, 189 Posts

30 November 2012 at 2:07am

Difficult to give an answer without seeing your code. Can you paste the code for all three classes?

Avatar
Ajaxian

Community Member, 8 Posts

30 November 2012 at 5:06am

Thanks IOTI,

I solved my problem, it was a bad relationship described.
A newcomer classic error....

Thanks