method get documentation in bbn\Entities\AbstractLinkType

Returns a Link object from the given id or null if not exists.

function($id) { if ($link = $this->fetch('one', [$this->fields['id'] => $id])) { $f = $this->fields; $tables = $this->class_cfg['tables']; return new Link( $link, $this->fetchLinks($tables['people'], [$this->parseId($link[$f['id_people']]) ?? ''], 'one'), $this->fetchLinks($tables['addresses'], [$this->parseId($link[$f['id_address']]) ?? ''], 'one'), $this->fetchLinks($tables['options'], [$this->parseId($link['id_option']) ?? ''], 'one'), ); } return null; }

Returns a Link object from the given id or null if not exists. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.