title: Configuring propel return type for flex
body: <p>I use wamp server and Propel.I have written my service using Propel but when I want to connect the data returned from the service Flex cannot recognize the return type.</p>
  
  <p>This  is the php code that I wrote</p>
  
  <pre><code>&lt;?php 
  
  // Include the main Propel script
  require_once 'C:/wamp/propel/runtime/lib/Propel.php';
  
  // Initialize Propel with the runtime configuration
  Propel::init("C:/wamp/www/school/build/conf/school-conf.php");
  
  // Add the generated 'classes' directory to the include path
  set_include_path("C:/wamp/www/school/build/classes" . PATH_SEPARATOR . get_include_path());
  
  class TeacherService { 
  function getTeachers()
  {
  
   $allTeachers=TeacherQuery::create()-&gt;find();
  
   $teachers=array();
   foreach($allTeachers as $teacher1)
   {
  
    array_push($teachers, $teacher1); 
  
   }
  
  return $teachers;
  }
  }
  ?&gt;
  </code></pre>
  
  <p>I wanto to display the information of teacers in a datagrid yet when I choose to auto-detect the return type it gives the error</p>
  
  <pre><code>'teacher' cannot be set to the data type "StdClass" because it has no properties.
  </code></pre>
  
  <p>How can I let flex know the properties of teacher rows returned by propel?</p>