SANTA CLARA, Calif. (AP) – Brandon Aiyuk’s long contract dispute with San Francisco came to an end Thursday when he agreed on a four-year contract to stay with the 49ers. A person familiar with the deal says the sides came to the agreement Thursday after Aiyuk missed his second straight practice despite being cleared by team doctors to participate. The person spoke on condition of anonymity because the deal hadn’t been announced.