I'm trying to show data from mysql database. I successfully created an entity but somehow can't access the properties, although I have public setters and getters.

Error Message:

> 
> Neither the property "id" nor one of the methods "id()", "getid()"/"isid()" or "\_\_call()" exist and have public access in class "AppBundle\Entity\Todos"
> 
> 
> 

I also tried differend namings but nothing seem to work. I'm also able to dump the object so it has to be there but I just can't get its values

controller function:

```
public function listToDo(){
    $todos = $this->getDoctrine()->getRepository(Todos::class)->findAll();
    return $this->render('todo/index.html.twig', ['todos'=>$todos]);
}

```

Todos.php:

```
<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Todos
 *
 * @ORM\Table(name="todos")
 * @ORM\Entity
 */
class Todos 
{
    /**
     * @var integer
     *
     * @ORM\Column(name="ID", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="ToDo", type="text", length=65535, nullable=false)
     */
    private $todo;

    /**
     * Get id
     * 
     * @return integer
     */
    public function getid(){
        return $this->id;
    }

    /**
     * Get todo
     * 
     * @return string
     */
    public function gettodo(){
        return $this->todo;
    }

    public function setTodo($todo){
        $this->todo = $todo;
        return $this;
    }
}

```

index.html.twig:

```
...
{% for do in todos %}
    <tr>
        <td>{{ dump(do) }}</td>
        <td>{{ do.id }}</td>
        <td>
        </td>
    </tr>
    {% endfor %} 
...

```

Anybody has an idea to solve this?