Database architecture question (relations?)

Status
This content is read-only, or is not open for further replies.

Anatoliy

Guest
offline
So I built an add-on (slightly modified Notes add-on from Building with XF 2 videos).

Spoiler: Entity
PHP:

Code:
<?php

namespace AV\Notes\Entity;

use XF\Mvc\Entity\Entity;
use XF\MVC\Entity\Structure;

class Note extends Entity
{

    public static function getStructure(Structure $structure): Structure
    {
        $structure->table = 'av_notes_note';
        $structure->shortName = 'AV\Notes:Note';
        $structure->contentType = 'av_notes_note';
        $structure->primaryKey = 'note_id'...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom