The minor was committed to the California Youth Authority (CYA) based on a new offense and previously sustained petitions. Over appellant’s objections, the juvenile court then imposed conditions of probation including orders not to associate with specified persons. The appellate court here struck the challenged conditions. Commitment to CYA removed the ward from the direct supervision of the juvenile court. It is unreasonable to assume that the Legislature intended both the juvenile court and CYA to regulate juvenile rehabilitation. Here, after the minor was committed, his rehabilitation was a function solely in the hands of CYA, and the juvenile court had no authority to impose conditions of probation.