Amanda Bynes could be confined to a mental health facility for up to a year ... based on a ruling that was just handed down by a judge ... TMZ has learned.
Doctors at the facility where Amanda has been held asked for a long-term hold, and they got it. Sources tell us the doctors then transferred control of the hold to Amanda's mother, who is currently the temporary conservator.
Sources tell us ... it's unlikely Amanda will be held for a year. In fact, we're told the plan is to keep her in a facility for 60 days to stabilize her and then transfer Amanda to her mom's home.
As for where Amanda is going ... we're told she is right now en route to the UCLA Medical Center for the long-term hold.
A photo agency sold TMZ a picture of a woman they claimed was Amanda leaving a Thousand Oaks facility in a blue wig. The lawyer for Amanda's mother, Tamar Arminak, tells TMZ the agency's representations were false, and it was not Amanda leaving the facility for UCLA.