$profilo->getSeguaci()->filter(function($entry) {
            var_dump($entry->getSeguito()->getUtente()->getLocked() !== 1);
        });
 
var_dump($profilo->getSeguaci());
       
/**
 * Get seguaci
 *
 * @return DoctrineCommonCollectionsCollection
 */
public function getSeguaci() {
 
 
    $this->seguaci->filter(function($entry) {
        return $entry->getSeguito()->getUtente()->getLocked() !== 0;
    });
 
    return $this->seguaci;
 
}