public function retour_active()
 {
     $requete = $this->_db->prepare('select * from type_article where active=:active order by nom');
     $requete->execute(array(':active' => self::$active));
     $results = $requete->fetchAll();
     $tabobject = array();
     if (empty($results)) {
         /** Si pas de resultats alors retourne faux */
         return false;
     } else {
         foreach ($results as $result) {
             $macategorie = new CategorieArticle();
             $macategorie->setId($result['id'])->setNom($result['nom'])->setActive($result['active']);
             array_push($tabobject, $macategorie);
             // Push l'objet $article dans le tableau $tabobject
         }
         return $tabobject;
     }
 }
<?php

/**
 * Created by PhpStorm.
 * User: Florent
 * Date: 17/04/2015
 * Time: 10:48
 */
require_once '../Navbar/navbar.php';
require_once '../Database/pdo.php';
require_once '../Entity/CategorieArticle.php';
require_once '../EntityManager/CategorieArticleManager.php';
$macategorie = new CategorieArticle();
$macategorie->setId($_POST['id'])->setNom($_POST['nom']);
$monmanagercategorie = new CategorieArticleManager($bdd);
$monmanagercategorie->modification($macategorie);
header('Location:../Main/categoriearticle.php');