title: Swagger PHP, model doesn't work
body: <p>I can't get this to work with my model; both with the "comment" way and the code way.</p>
  
  <p>Can anyone please help me out? The "type" field on the operation annotations don't take any effect.</p>
  
  <pre><code>    $swagger = $this-&gt;app["swagger"];
  
      $swagger-&gt;models["user"] = new \Swagger\Annotations\Model([
          "id" =&gt; "user",
          "properties" =&gt; array(
              new \Swagger\Annotations\Property([
                  "name" =&gt; "test", "type"=&gt;"string"
              ])
          )
      ]);
  
      $path="/users";
      $name="user";
      $serivce = "Users";
  
      $swagger-&gt;registry[$path] = new \Swagger\Annotations\Resource([
          'resourcePath' =&gt; $path,
          'basePath'=&gt;"/".$this-&gt;app['api.version'],
          'apis' =&gt; array(
              new \Swagger\Annotations\API([
                  'path' =&gt; $path,
                  'operations' =&gt; array(
                      new \Swagger\Annotations\Operation([
                          'method' =&gt; "GET",
                          'summary' =&gt; "Returns a list of ".ucfirst($service),
                          'nickname' =&gt; "GetAll".ucfirst($service),
                          'type' =&gt; "user",
                      ]),
                  )
              ])
          )
      ]);
  </code></pre>