0 Replies Latest reply on Dec 23, 2010 7:57 AM by willm8655

    Extended PHP value objects not mainted in Flash Builder

    willm8655 Level 1

      I have a problem when detecting return types in Flash Builder - classes that have been extended from other php classes do not maintain this link between the two classes in Flash Builder.

       

      Example:

       

      Employee.php

      class Employee
      {
           public $name = "John"
           public $age = "27"
      }
      

       

      DeptEmployee.php

      class DeptEmployee extends Employee
      {
           public $department = "Accounting"
      }
      

       

      Service.php

      class Service
      {
           public function getEmployee()
           {
                return new Employee();
           }
           public function getDeptEmployee()
           {
                return new DeptEmployee();
           }
      }
      


      Then if I detect return types in Flex, I get two seperate classes, so can't do type coercion from one to the other.

       

      Is there anyway to resolve this issue?

       

      Thanks