Multiple States

My daughter lives with me in PA but is moving to upstate NY for a year, renting an apartment, to work for a company in NY.  Because she is only there for a year and returning to her PA permanent home at the end of the year, how should we handle income taxes?  Does she have to pay taxes to both PA and NY? Does she need to file a full year resident return for NY and a full year resident return for PA?  Thank you in advance!