Welcome Guest, Not a member yet? Register   Sign In
Entities returned by Model missing parent methods?
#5

(11-15-2020, 11:58 AM)paulbalandan Wrote: Can you post the constructor part of both your BaseEntity and sample child Entity?

Sure. This is the BaseEntity:


PHP Code:
<?php

namespace App\Entities;
use 
CodeIgniter\Entity;

class 
BaseEntity extends Entity {

  public function __construct(array $data null)
  {
    parent::__construct($data);
  }

  //Class methods




And my entity (this is where I can't access the method's defined by CodeIgniter's Entity class):

PHP Code:
<?php

namespace App\Entities;

class 
Destination extends BaseEntity {

  public function __construct(array $data null)
  {
    parent::__construct($data);
  }

  //Class methods


Reply


Messages In This Thread
RE: Entities returned by Model missing parent methods? - by schertt - 11-15-2020, 02:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB