A worker at a popular Texas-based fast food chain has been fired after refusing to serve two police officers.

Officers tried to get something to eat at a Whataburger in Denison, Texas early Saturday when an unidentified female employee declined to serve them, according to Police Chief Jay Burch.

Burch says in a Facebook post the employee cursed at the North Texas officers and alleged 'cops beat up my boyfriend and are racists.'

He claims that the manager, in response to the incident, said: 'I don't get into politics.'

Two Denison, Texas police officers (not pictured in this photo) were refused service at a Whataburger they had tried to visit in the middle of the night while taking a break. Police Chief Jay Burch (center) and Sergeant Holly Jenkins (right) wrote about the incident on Facebook. Pictured at left is Sergeant Chris Kuhn

An unidentified female employee at the Whataburger location (pictured) alleged that'cops beat up my boyfriend and are racists,' according to police

Burch wrote: 'If a business does not want police officers as customers, just let us know.

'There’s no need to curse us and make a scene, just let us know you don’t want us there and we’ll go somewhere else.

'Now going somewhere else in Denison in the middle of the night is not easy because our officers don’t have many options. What really gets my goat with such an incident is that while most of us are sleeping – sleeping!, the officers are out there working hard to keep us safe and when trying to take a break to eat – they face this type of reception from an employee of a local business and management calls it “politics”?'

Burch says that a police officer later reviewed video of the employee's boyfriend who she alleged had experienced police violence.

He writes: 'There was no physical altercation and no one injured. So the employee was simply lying about her boyfriend getting “beat up” by police.'

Burch did not identify the restaurant but in a statement, Whataburger corporate communications said Saturday it discovered 'an individual employee acted out of line with Whataburger's values to treat all customers with respect'.

Whataburger says the employee was fired and the company plans to speak with the officers 'to apologize in person and make this right'.

Police Sergeant Holly Jenkins later wrote in her own Facebook post: 'As of today several police officers of the Denison Police Department will no longer patronize the Denison Whataburger'

She added: 'I am saddened, disappointed and angry about the treatment these two officers received this morning. However, when Whataburger or their staff call, we will respond.

'We will not hesitate. We will respond with courage, compassion and professionalism.

'I know the heart of those two officers who endured the hatred, they'll be the first ones out the door.

'This is our community, we believe in what we do and we will continue to fight the evil most pretend doesn't exist. We will hold the line!'