title: Calling an overriden parent method is throwing an undefined property error
body: <p>I am trying to bypass an override method but getting an error:</p>
  
  <blockquote>
    <p>Notice: Undefined property: EventPositionModel::$parent</p>
  </blockquote>
  
  <p>I am calling like this:</p>
  
  <pre><code>$newEventPosition = new EventPositionModel;
  $newEventPosition::parent-&gt;createRecord($accessUser, $fieldValues);
  
  //also tried
  $newEventPosition-&gt;parent::createRecord($accessUser, $fieldValues);
  </code></pre>
  
  <p>The object is set. </p>
  
  <p>I have also tried <code>$newEventPosition-&gt;parent-&gt;createRecord</code></p>
  
  <p>The classes are:</p>
  
  <pre><code>class EventPositionModel extends Model {
       public function createRecord($accessUser, $fieldValues){
          //we need to know if we are creating for one or all days
          $recordCreated = false;
  
          if (!empty($fieldValues['all_days'])){
               // we need to loop the scheduled days and add the position
               $eventSchedule = new EventScheduleModel;
               $eventScheduleDays = $eventSchedule-&gt;getAllChildRecords();
  
               foreach($eventScheduleDays as $scheduleDay){
                  $fieldValues['event_schedule_id'] = $scheduleDay['event_scheduleID'];
  
                  // Because I need to return a JSON array to the API caller I need to create seperate instances of the same model for each record created at this point.
                  $newEventPosition = new EventPositionModel;
                  if ($newEventPosition::parent::createRecord($accessUser, $fieldValues)){
                      $this-&gt;record['newPositions'] = $newEventPosition-&gt;record;
  
                  };
              }
          }
          else{
              if (parent::createRecord($accessUser, $fieldValues)){
                    //do some stuff....
              }
           }
  
       }
  }
  
  
  class Model{
      public function createRecord($accessUser, $fieldValues){
           //Do a LOT of stuff
      }
  }
  </code></pre>