I need just to show the first published demands:

```
$demand = $em->getRepository('DemandsBundle:Demands')->findBy(array('date' => )?

```

I have a problem in this request, can someone tell me how can I make :`findby` to just replay the first demand in my database?

in controller : 

`$entity->setCreatedAt(new \DateTime('now'));`

in Entity:

```
/**
 * @var \DateTime
 *
 * @ORM\Column(name="created_at", type="datetime", nullable=false)
 */
private $createdAt;

```